IpPermission.fromJson constructor

IpPermission.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IpPermission.fromJson(Map<String, dynamic> json) {
  return IpPermission(
    fromPort: json['FromPort'] as int,
    ipRange: json['IpRange'] as String,
    protocol: (json['Protocol'] as String).toIpProtocol(),
    toPort: json['ToPort'] as int,
  );
}