Installation.fromJson constructor

Installation.fromJson(
  1. Map<String, dynamic> json
)

Parsing Installation from json.

Implementation

Installation.fromJson(Map<String, dynamic> json)
    : isPrimaryDevice = json['isPrimaryDevice'],
      pushRegistrationId = json['pushRegistrationId'],
      pushServiceToken = json['pushServiceToken'],
      pushServiceType = _resolvePushServiceType(json['pushServiceType']),
      isPushRegistrationEnabled = json['isPushRegistrationEnabled'],
      notificationsEnabled = json['notificationsEnabled'],
      sdkVersion = json['sdkVersion'],
      appVersion = json['appVersion'],
      os = _fromString(json['os']),
      osVersion = json['osVersion'],
      deviceManufacturer = json['deviceManufacturer'],
      deviceModel = json['deviceModel'],
      deviceSecure = json['deviceSecure'],
      language = json['language'],
      deviceTimezoneOffset = json['deviceTimezoneOffset'],
      applicationUserId = json['applicationUserId'],
      deviceName = json['deviceName'],
      customAttributes = json['customAttributes'];