toJson method

Map<String, Object> toJson()

Converts a ServerAddressByClientCIDR instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempClientCIDR = clientCIDR;
  final tempServerAddress = serverAddress;

  jsonData['clientCIDR'] = tempClientCIDR;

  jsonData['serverAddress'] = tempServerAddress;

  return jsonData;
}