BlockPublicAccessConfiguration.fromJson constructor
BlockPublicAccessConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BlockPublicAccessConfiguration.fromJson(Map<String, dynamic> json) {
return BlockPublicAccessConfiguration(
blockPublicSecurityGroupRules:
json['BlockPublicSecurityGroupRules'] as bool,
permittedPublicSecurityGroupRuleRanges:
(json['PermittedPublicSecurityGroupRuleRanges'] as List?)
?.whereNotNull()
.map((e) => PortRange.fromJson(e as Map<String, dynamic>))
.toList(),
);
}