toJson method
Implementation
Map<String, dynamic> toJson() {
final fromPort = this.fromPort;
final protocols = this.protocols;
final toPort = this.toPort;
return {
'FromPort': fromPort,
'Protocols': protocols.map((e) => e.toValue()).toList(),
'ToPort': toPort,
};
}