toJson method
Implementation
Map<String, dynamic> toJson() {
final fromPort = this.fromPort;
final ipRange = this.ipRange;
final protocol = this.protocol;
final toPort = this.toPort;
return {
'FromPort': fromPort,
'IpRange': ipRange,
'Protocol': protocol.toValue(),
'ToPort': toPort,
};
}