toJson method

  1. @override
Object toJson()

Implementation

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