Route.fromJson constructor

Route.fromJson(
  1. Map json_
)

Implementation

Route.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        ipCidrRange: json_.containsKey('ipCidrRange')
            ? json_['ipCidrRange'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nextHopInterconnectAttachment:
            json_.containsKey('nextHopInterconnectAttachment')
                ? NextHopInterconnectAttachment.fromJson(
                    json_['nextHopInterconnectAttachment']
                        as core.Map<core.String, core.dynamic>)
                : null,
        nextHopRouterApplianceInstance:
            json_.containsKey('nextHopRouterApplianceInstance')
                ? NextHopRouterApplianceInstance.fromJson(
                    json_['nextHopRouterApplianceInstance']
                        as core.Map<core.String, core.dynamic>)
                : null,
        nextHopVpcNetwork: json_.containsKey('nextHopVpcNetwork')
            ? NextHopVpcNetwork.fromJson(json_['nextHopVpcNetwork']
                as core.Map<core.String, core.dynamic>)
            : null,
        nextHopVpnTunnel: json_.containsKey('nextHopVpnTunnel')
            ? NextHopVPNTunnel.fromJson(json_['nextHopVpnTunnel']
                as core.Map<core.String, core.dynamic>)
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.String
            : null,
        spoke:
            json_.containsKey('spoke') ? json_['spoke'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );