Route.fromJson constructor

Route.fromJson(
  1. Map json_
)

Implementation

Route.fromJson(core.Map json_)
    : this(
        asPaths: json_.containsKey('asPaths')
            ? (json_['asPaths'] as core.List)
                .map((value) => RouteAsPath.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        destRange: json_.containsKey('destRange')
            ? json_['destRange'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        nextHopGateway: json_.containsKey('nextHopGateway')
            ? json_['nextHopGateway'] as core.String
            : null,
        nextHopHub: json_.containsKey('nextHopHub')
            ? json_['nextHopHub'] as core.String
            : null,
        nextHopIlb: json_.containsKey('nextHopIlb')
            ? json_['nextHopIlb'] as core.String
            : null,
        nextHopInstance: json_.containsKey('nextHopInstance')
            ? json_['nextHopInstance'] as core.String
            : null,
        nextHopIp: json_.containsKey('nextHopIp')
            ? json_['nextHopIp'] as core.String
            : null,
        nextHopNetwork: json_.containsKey('nextHopNetwork')
            ? json_['nextHopNetwork'] as core.String
            : null,
        nextHopPeering: json_.containsKey('nextHopPeering')
            ? json_['nextHopPeering'] as core.String
            : null,
        nextHopVpnTunnel: json_.containsKey('nextHopVpnTunnel')
            ? json_['nextHopVpnTunnel'] as core.String
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        routeStatus: json_.containsKey('routeStatus')
            ? json_['routeStatus'] as core.String
            : null,
        routeType: json_.containsKey('routeType')
            ? json_['routeType'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => RouteWarnings.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );