toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (adbStatus != null) 'adbStatus': adbStatus!,
  if (applications != null) 'applications': applications!,
  if (basebandVersion != null) 'basebandVersion': basebandVersion!,
  if (bootloaderVersion != null) 'bootloaderVersion': bootloaderVersion!,
  if (brand != null) 'brand': brand!,
  if (buildNumber != null) 'buildNumber': buildNumber!,
  if (defaultLanguage != null) 'defaultLanguage': defaultLanguage!,
  if (developerOptionsStatus != null)
    'developerOptionsStatus': developerOptionsStatus!,
  if (deviceCompromisedStatus != null)
    'deviceCompromisedStatus': deviceCompromisedStatus!,
  if (deviceId != null) 'deviceId': deviceId!,
  if (devicePasswordStatus != null)
    'devicePasswordStatus': devicePasswordStatus!,
  if (email != null) 'email': email!,
  if (encryptionStatus != null) 'encryptionStatus': encryptionStatus!,
  if (etag != null) 'etag': etag!,
  if (firstSync != null) 'firstSync': firstSync!.toUtc().toIso8601String(),
  if (hardware != null) 'hardware': hardware!,
  if (hardwareId != null) 'hardwareId': hardwareId!,
  if (imei != null) 'imei': imei!,
  if (kernelVersion != null) 'kernelVersion': kernelVersion!,
  if (kind != null) 'kind': kind!,
  if (lastSync != null) 'lastSync': lastSync!.toUtc().toIso8601String(),
  if (managedAccountIsOnOwnerProfile != null)
    'managedAccountIsOnOwnerProfile': managedAccountIsOnOwnerProfile!,
  if (manufacturer != null) 'manufacturer': manufacturer!,
  if (meid != null) 'meid': meid!,
  if (model != null) 'model': model!,
  if (name != null) 'name': name!,
  if (networkOperator != null) 'networkOperator': networkOperator!,
  if (os != null) 'os': os!,
  if (otherAccountsInfo != null) 'otherAccountsInfo': otherAccountsInfo!,
  if (privilege != null) 'privilege': privilege!,
  if (releaseVersion != null) 'releaseVersion': releaseVersion!,
  if (resourceId != null) 'resourceId': resourceId!,
  if (securityPatchLevel != null) 'securityPatchLevel': securityPatchLevel!,
  if (serialNumber != null) 'serialNumber': serialNumber!,
  if (status != null) 'status': status!,
  if (supportsWorkProfile != null)
    'supportsWorkProfile': supportsWorkProfile!,
  if (type != null) 'type': type!,
  if (unknownSourcesStatus != null)
    'unknownSourcesStatus': unknownSourcesStatus!,
  if (userAgent != null) 'userAgent': userAgent!,
  if (wifiMacAddress != null) 'wifiMacAddress': wifiMacAddress!,
};