DistributionRestrictionsGeoRestriction.fromMap constructor

DistributionRestrictionsGeoRestriction.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory DistributionRestrictionsGeoRestriction.fromMap(Map<String, dynamic> map) {
  return DistributionRestrictionsGeoRestriction(
    locations: (() { final guardedValue = map['locations']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    restrictionType: pulumi.Input.fromValue(map['restrictionType'] as String),
  );
}