DistributionPolicy.fromJson constructor

DistributionPolicy.fromJson(
  1. Map json_
)

Implementation

DistributionPolicy.fromJson(core.Map json_)
    : this(
        targetShape: json_.containsKey('targetShape')
            ? json_['targetShape'] as core.String
            : null,
        zones: json_.containsKey('zones')
            ? (json_['zones'] as core.List)
                .map((value) => DistributionPolicyZoneConfiguration.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );