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