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,
        minSdkVersion: _json.containsKey('minSdkVersion')
            ? _json['minSdkVersion'] as core.int
            : null,
        packageName: _json.containsKey('packageName')
            ? _json['packageName'] as core.String
            : null,
        targetSdkVersion: _json.containsKey('targetSdkVersion')
            ? _json['targetSdkVersion'] as core.int
            : null,
        usesPermission: _json.containsKey('usesPermission')
            ? (_json['usesPermission'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );