toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (autoCreateRoutes != null) 'autoCreateRoutes': autoCreateRoutes!,
  if (connectionStatus != null) 'connectionStatus': connectionStatus!,
  if (exchangeSubnetRoutes != null)
    'exchangeSubnetRoutes': exchangeSubnetRoutes!,
  if (exportCustomRoutes != null) 'exportCustomRoutes': exportCustomRoutes!,
  if (exportSubnetRoutesWithPublicIp != null)
    'exportSubnetRoutesWithPublicIp': exportSubnetRoutesWithPublicIp!,
  if (importCustomRoutes != null) 'importCustomRoutes': importCustomRoutes!,
  if (importSubnetRoutesWithPublicIp != null)
    'importSubnetRoutesWithPublicIp': importSubnetRoutesWithPublicIp!,
  if (name != null) 'name': name!,
  if (network != null) 'network': network!,
  if (peerMtu != null) 'peerMtu': peerMtu!,
  if (stackType != null) 'stackType': stackType!,
  if (state != null) 'state': state!,
  if (stateDetails != null) 'stateDetails': stateDetails!,
  if (updateStrategy != null) 'updateStrategy': updateStrategy!,
};