toJson method
Implementation
@override
Object toJson() => {
if (asPaths.isNotDefault) 'asPaths': [for (final i in asPaths) i.toJson()],
'creationTimestamp': ?creationTimestamp,
'description': ?description,
'destRange': ?destRange,
'id': ?id?.toString(),
'kind': ?kind,
'name': ?name,
'network': ?network,
'nextHopGateway': ?nextHopGateway,
'nextHopHub': ?nextHopHub,
'nextHopIlb': ?nextHopIlb,
'nextHopInstance': ?nextHopInstance,
'nextHopInterRegionCost': ?nextHopInterRegionCost,
'nextHopInterconnectAttachment': ?nextHopInterconnectAttachment,
'nextHopIp': ?nextHopIp,
'nextHopMed': ?nextHopMed,
'nextHopNetwork': ?nextHopNetwork,
'nextHopOrigin': ?nextHopOrigin,
'nextHopPeering': ?nextHopPeering,
'nextHopVpnTunnel': ?nextHopVpnTunnel,
'params': ?params?.toJson(),
'priority': ?priority,
'routeStatus': ?routeStatus,
'routeType': ?routeType,
'selfLink': ?selfLink,
if (tags.isNotDefault) 'tags': tags,
if (warnings.isNotDefault)
'warnings': [for (final i in warnings) i.toJson()],
};