toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endpointPort = this.endpointPort;
  final listenerPort = this.listenerPort;
  return {
    if (endpointPort != null) 'EndpointPort': endpointPort,
    if (listenerPort != null) 'ListenerPort': listenerPort,
  };
}