AwsEc2SecurityGroupIpPermission.fromJson constructor
AwsEc2SecurityGroupIpPermission.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsEc2SecurityGroupIpPermission.fromJson(Map<String, dynamic> json) {
return AwsEc2SecurityGroupIpPermission(
fromPort: json['FromPort'] as int?,
ipProtocol: json['IpProtocol'] as String?,
ipRanges: (json['IpRanges'] as List?)
?.whereNotNull()
.map((e) =>
AwsEc2SecurityGroupIpRange.fromJson(e as Map<String, dynamic>))
.toList(),
ipv6Ranges: (json['Ipv6Ranges'] as List?)
?.whereNotNull()
.map((e) =>
AwsEc2SecurityGroupIpv6Range.fromJson(e as Map<String, dynamic>))
.toList(),
prefixListIds: (json['PrefixListIds'] as List?)
?.whereNotNull()
.map((e) => AwsEc2SecurityGroupPrefixListId.fromJson(
e as Map<String, dynamic>))
.toList(),
toPort: json['ToPort'] as int?,
userIdGroupPairs: (json['UserIdGroupPairs'] as List?)
?.whereNotNull()
.map((e) => AwsEc2SecurityGroupUserIdGroupPair.fromJson(
e as Map<String, dynamic>))
.toList(),
);
}