AutoInstallPolicy.fromJson constructor

AutoInstallPolicy.fromJson(
  1. Map json_
)

Implementation

AutoInstallPolicy.fromJson(core.Map json_)
    : this(
        autoInstallConstraint: json_.containsKey('autoInstallConstraint')
            ? (json_['autoInstallConstraint'] as core.List)
                .map((value) => AutoInstallConstraint.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        autoInstallMode: json_.containsKey('autoInstallMode')
            ? json_['autoInstallMode'] as core.String
            : null,
        autoInstallPriority: json_.containsKey('autoInstallPriority')
            ? json_['autoInstallPriority'] as core.int
            : null,
        minimumVersionCode: json_.containsKey('minimumVersionCode')
            ? json_['minimumVersionCode'] as core.int
            : null,
      );