toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final countryCodes = this.countryCodes;
  final forwardedIPConfig = this.forwardedIPConfig;
  return {
    if (countryCodes != null)
      'CountryCodes': countryCodes.map((e) => e.toValue()).toList(),
    if (forwardedIPConfig != null) 'ForwardedIPConfig': forwardedIPConfig,
  };
}