toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (asPaths != null) 'asPaths': asPaths!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (description != null) 'description': description!,
      if (destRange != null) 'destRange': destRange!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (network != null) 'network': network!,
      if (nextHopGateway != null) 'nextHopGateway': nextHopGateway!,
      if (nextHopHub != null) 'nextHopHub': nextHopHub!,
      if (nextHopIlb != null) 'nextHopIlb': nextHopIlb!,
      if (nextHopInstance != null) 'nextHopInstance': nextHopInstance!,
      if (nextHopIp != null) 'nextHopIp': nextHopIp!,
      if (nextHopNetwork != null) 'nextHopNetwork': nextHopNetwork!,
      if (nextHopPeering != null) 'nextHopPeering': nextHopPeering!,
      if (nextHopVpnTunnel != null) 'nextHopVpnTunnel': nextHopVpnTunnel!,
      if (priority != null) 'priority': priority!,
      if (routeStatus != null) 'routeStatus': routeStatus!,
      if (routeType != null) 'routeType': routeType!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (tags != null) 'tags': tags!,
      if (warnings != null) 'warnings': warnings!,
    };