toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cidrListAliases = this.cidrListAliases;
  final cidrs = this.cidrs;
  final fromPort = this.fromPort;
  final protocol = this.protocol;
  final toPort = this.toPort;
  return {
    if (cidrListAliases != null) 'cidrListAliases': cidrListAliases,
    if (cidrs != null) 'cidrs': cidrs,
    if (fromPort != null) 'fromPort': fromPort,
    if (protocol != null) 'protocol': protocol.toValue(),
    if (toPort != null) 'toPort': toPort,
  };
}