ApkManifest.fromJson constructor

ApkManifest.fromJson(
  1. Map json_
)

Implementation

ApkManifest.fromJson(core.Map json_)
    : this(
        applicationLabel: json_.containsKey('applicationLabel')
            ? json_['applicationLabel'] as core.String
            : null,
        intentFilters: json_.containsKey('intentFilters')
            ? (json_['intentFilters'] as core.List)
                .map((value) => IntentFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        maxSdkVersion: json_.containsKey('maxSdkVersion')
            ? json_['maxSdkVersion'] as core.int
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.List)
                .map((value) => Metadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minSdkVersion: json_.containsKey('minSdkVersion')
            ? json_['minSdkVersion'] as core.int
            : null,
        packageName: json_.containsKey('packageName')
            ? json_['packageName'] as core.String
            : null,
        services: json_.containsKey('services')
            ? (json_['services'] as core.List)
                .map((value) => Service.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetSdkVersion: json_.containsKey('targetSdkVersion')
            ? json_['targetSdkVersion'] as core.int
            : null,
        usesFeature: json_.containsKey('usesFeature')
            ? (json_['usesFeature'] as core.List)
                .map((value) => UsesFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        usesPermission: json_.containsKey('usesPermission')
            ? (json_['usesPermission'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        versionCode: json_.containsKey('versionCode')
            ? json_['versionCode'] as core.String
            : null,
        versionName: json_.containsKey('versionName')
            ? json_['versionName'] as core.String
            : null,
      );