toJson method
Implementation
@override
Object toJson() => {
'consumerNetwork': ?consumerNetwork,
'endpoint': ?endpoint,
'endpointWithId': ?endpointWithId,
if (natIps.isNotDefault) 'natIps': natIps,
'propagatedConnectionCount': ?propagatedConnectionCount,
'pscConnectionId': ?pscConnectionId?.toString(),
'status': ?status,
};