SoftwareInfo.fromJson constructor

SoftwareInfo.fromJson(
  1. Map json_
)

Implementation

SoftwareInfo.fromJson(core.Map json_)
    : this(
        androidBuildNumber: json_.containsKey('androidBuildNumber')
            ? json_['androidBuildNumber'] as core.String
            : null,
        androidBuildTime: json_.containsKey('androidBuildTime')
            ? json_['androidBuildTime'] as core.String
            : null,
        androidDevicePolicyVersionCode:
            json_.containsKey('androidDevicePolicyVersionCode')
                ? json_['androidDevicePolicyVersionCode'] as core.int
                : null,
        androidDevicePolicyVersionName:
            json_.containsKey('androidDevicePolicyVersionName')
                ? json_['androidDevicePolicyVersionName'] as core.String
                : null,
        androidVersion: json_.containsKey('androidVersion')
            ? json_['androidVersion'] as core.String
            : null,
        bootloaderVersion: json_.containsKey('bootloaderVersion')
            ? json_['bootloaderVersion'] as core.String
            : null,
        deviceBuildSignature: json_.containsKey('deviceBuildSignature')
            ? json_['deviceBuildSignature'] as core.String
            : null,
        deviceKernelVersion: json_.containsKey('deviceKernelVersion')
            ? json_['deviceKernelVersion'] as core.String
            : null,
        primaryLanguageCode: json_.containsKey('primaryLanguageCode')
            ? json_['primaryLanguageCode'] as core.String
            : null,
        securityPatchLevel: json_.containsKey('securityPatchLevel')
            ? json_['securityPatchLevel'] as core.String
            : null,
        systemUpdateInfo: json_.containsKey('systemUpdateInfo')
            ? SystemUpdateInfo.fromJson(json_['systemUpdateInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
      );