SplitApkVariant.fromJson constructor

SplitApkVariant.fromJson(
  1. Map json_
)

Implementation

SplitApkVariant.fromJson(core.Map json_)
    : this(
        apkSet: json_.containsKey('apkSet')
            ? (json_['apkSet'] as core.List)
                .map((value) => ApkSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targeting: json_.containsKey('targeting')
            ? VariantTargeting.fromJson(
                json_['targeting'] as core.Map<core.String, core.dynamic>)
            : null,
        variantNumber: json_.containsKey('variantNumber')
            ? json_['variantNumber'] as core.int
            : null,
      );