MobileDevice.fromJson constructor

MobileDevice.fromJson(
  1. Map json_
)

Implementation

MobileDevice.fromJson(core.Map json_)
    : this(
        adbStatus: json_.containsKey('adbStatus')
            ? json_['adbStatus'] as core.bool
            : null,
        applications: json_.containsKey('applications')
            ? (json_['applications'] as core.List)
                .map((value) => MobileDeviceApplications.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        basebandVersion: json_.containsKey('basebandVersion')
            ? json_['basebandVersion'] as core.String
            : null,
        bootloaderVersion: json_.containsKey('bootloaderVersion')
            ? json_['bootloaderVersion'] as core.String
            : null,
        brand:
            json_.containsKey('brand') ? json_['brand'] as core.String : null,
        buildNumber: json_.containsKey('buildNumber')
            ? json_['buildNumber'] as core.String
            : null,
        defaultLanguage: json_.containsKey('defaultLanguage')
            ? json_['defaultLanguage'] as core.String
            : null,
        developerOptionsStatus: json_.containsKey('developerOptionsStatus')
            ? json_['developerOptionsStatus'] as core.bool
            : null,
        deviceCompromisedStatus: json_.containsKey('deviceCompromisedStatus')
            ? json_['deviceCompromisedStatus'] as core.String
            : null,
        deviceId: json_.containsKey('deviceId')
            ? json_['deviceId'] as core.String
            : null,
        devicePasswordStatus: json_.containsKey('devicePasswordStatus')
            ? json_['devicePasswordStatus'] as core.String
            : null,
        email: json_.containsKey('email')
            ? (json_['email'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        encryptionStatus: json_.containsKey('encryptionStatus')
            ? json_['encryptionStatus'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        firstSync: json_.containsKey('firstSync')
            ? core.DateTime.parse(json_['firstSync'] as core.String)
            : null,
        hardware: json_.containsKey('hardware')
            ? json_['hardware'] as core.String
            : null,
        hardwareId: json_.containsKey('hardwareId')
            ? json_['hardwareId'] as core.String
            : null,
        imei: json_.containsKey('imei') ? json_['imei'] as core.String : null,
        kernelVersion: json_.containsKey('kernelVersion')
            ? json_['kernelVersion'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        lastSync: json_.containsKey('lastSync')
            ? core.DateTime.parse(json_['lastSync'] as core.String)
            : null,
        managedAccountIsOnOwnerProfile:
            json_.containsKey('managedAccountIsOnOwnerProfile')
                ? json_['managedAccountIsOnOwnerProfile'] as core.bool
                : null,
        manufacturer: json_.containsKey('manufacturer')
            ? json_['manufacturer'] as core.String
            : null,
        meid: json_.containsKey('meid') ? json_['meid'] as core.String : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        name: json_.containsKey('name')
            ? (json_['name'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        networkOperator: json_.containsKey('networkOperator')
            ? json_['networkOperator'] as core.String
            : null,
        os: json_.containsKey('os') ? json_['os'] as core.String : null,
        otherAccountsInfo: json_.containsKey('otherAccountsInfo')
            ? (json_['otherAccountsInfo'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        privilege: json_.containsKey('privilege')
            ? json_['privilege'] as core.String
            : null,
        releaseVersion: json_.containsKey('releaseVersion')
            ? json_['releaseVersion'] as core.String
            : null,
        resourceId: json_.containsKey('resourceId')
            ? json_['resourceId'] as core.String
            : null,
        securityPatchLevel: json_.containsKey('securityPatchLevel')
            ? json_['securityPatchLevel'] as core.String
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        supportsWorkProfile: json_.containsKey('supportsWorkProfile')
            ? json_['supportsWorkProfile'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        unknownSourcesStatus: json_.containsKey('unknownSourcesStatus')
            ? json_['unknownSourcesStatus'] as core.bool
            : null,
        userAgent: json_.containsKey('userAgent')
            ? json_['userAgent'] as core.String
            : null,
        wifiMacAddress: json_.containsKey('wifiMacAddress')
            ? json_['wifiMacAddress'] as core.String
            : null,
      );