toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (advertisedRoutes.isNotDefault)
    'advertisedRoutes': [for (final i in advertisedRoutes) i.toJson()],
  'bfdStatus': ?bfdStatus?.toJson(),
  'enableIpv4': ?enableIpv4,
  'enableIpv6': ?enableIpv6,
  'ipAddress': ?ipAddress,
  'ipv4NexthopAddress': ?ipv4NexthopAddress,
  'ipv6NexthopAddress': ?ipv6NexthopAddress,
  'linkedVpnTunnel': ?linkedVpnTunnel,
  'md5AuthEnabled': ?md5AuthEnabled,
  'name': ?name,
  'numLearnedRoutes': ?numLearnedRoutes,
  'peerIpAddress': ?peerIpAddress,
  'peerIpv4NexthopAddress': ?peerIpv4NexthopAddress,
  'peerIpv6NexthopAddress': ?peerIpv6NexthopAddress,
  'routerApplianceInstance': ?routerApplianceInstance,
  'state': ?state,
  'status': ?status,
  'statusReason': ?statusReason,
  'uptime': ?uptime,
  'uptimeSeconds': ?uptimeSeconds,
};