toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (androidSpecificAttributes != null)
        'androidSpecificAttributes': androidSpecificAttributes!,
      if (assetTag != null) 'assetTag': assetTag!,
      if (basebandVersion != null) 'basebandVersion': basebandVersion!,
      if (bootloaderVersion != null) 'bootloaderVersion': bootloaderVersion!,
      if (brand != null) 'brand': brand!,
      if (buildNumber != null) 'buildNumber': buildNumber!,
      if (compromisedState != null) 'compromisedState': compromisedState!,
      if (createTime != null) 'createTime': createTime!,
      if (deviceId != null) 'deviceId': deviceId!,
      if (deviceType != null) 'deviceType': deviceType!,
      if (enabledDeveloperOptions != null)
        'enabledDeveloperOptions': enabledDeveloperOptions!,
      if (enabledUsbDebugging != null)
        'enabledUsbDebugging': enabledUsbDebugging!,
      if (encryptionState != null) 'encryptionState': encryptionState!,
      if (hostname != null) 'hostname': hostname!,
      if (imei != null) 'imei': imei!,
      if (kernelVersion != null) 'kernelVersion': kernelVersion!,
      if (lastSyncTime != null) 'lastSyncTime': lastSyncTime!,
      if (managementState != null) 'managementState': managementState!,
      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 (osVersion != null) 'osVersion': osVersion!,
      if (otherAccounts != null) 'otherAccounts': otherAccounts!,
      if (ownerType != null) 'ownerType': ownerType!,
      if (releaseVersion != null) 'releaseVersion': releaseVersion!,
      if (securityPatchTime != null) 'securityPatchTime': securityPatchTime!,
      if (serialNumber != null) 'serialNumber': serialNumber!,
      if (wifiMacAddresses != null) 'wifiMacAddresses': wifiMacAddresses!,
    };