ExternallyHostedApk.fromJson constructor

ExternallyHostedApk.fromJson(
  1. Map json_
)

Implementation

ExternallyHostedApk.fromJson(core.Map json_)
    : this(
        applicationLabel: json_.containsKey('applicationLabel')
            ? json_['applicationLabel'] as core.String
            : null,
        certificateBase64s: json_.containsKey('certificateBase64s')
            ? (json_['certificateBase64s'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        externallyHostedUrl: json_.containsKey('externallyHostedUrl')
            ? json_['externallyHostedUrl'] as core.String
            : null,
        fileSha1Base64: json_.containsKey('fileSha1Base64')
            ? json_['fileSha1Base64'] as core.String
            : null,
        fileSha256Base64: json_.containsKey('fileSha256Base64')
            ? json_['fileSha256Base64'] as core.String
            : null,
        fileSize: json_.containsKey('fileSize')
            ? json_['fileSize'] as core.String
            : null,
        iconBase64: json_.containsKey('iconBase64')
            ? json_['iconBase64'] as core.String
            : null,
        maximumSdk: json_.containsKey('maximumSdk')
            ? json_['maximumSdk'] as core.int
            : null,
        minimumSdk: json_.containsKey('minimumSdk')
            ? json_['minimumSdk'] as core.int
            : null,
        nativeCodes: json_.containsKey('nativeCodes')
            ? (json_['nativeCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        packageName: json_.containsKey('packageName')
            ? json_['packageName'] as core.String
            : null,
        usesFeatures: json_.containsKey('usesFeatures')
            ? (json_['usesFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        usesPermissions: json_.containsKey('usesPermissions')
            ? (json_['usesPermissions'] as core.List)
                .map((value) => UsesPermission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        versionCode: json_.containsKey('versionCode')
            ? json_['versionCode'] as core.int
            : null,
        versionName: json_.containsKey('versionName')
            ? json_['versionName'] as core.String
            : null,
      );