toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (drainNatIpPortRanges != null)
        'drainNatIpPortRanges': drainNatIpPortRanges!,
      if (natIpPortRanges != null) 'natIpPortRanges': natIpPortRanges!,
      if (numTotalDrainNatPorts != null)
        'numTotalDrainNatPorts': numTotalDrainNatPorts!,
      if (numTotalNatPorts != null) 'numTotalNatPorts': numTotalNatPorts!,
      if (ruleNumber != null) 'ruleNumber': ruleNumber!,
    };