Router.fromJson constructor

Router.fromJson(
  1. Map json_
)

Implementation

Router.fromJson(core.Map json_)
    : this(
        bgp: json_.containsKey('bgp')
            ? RouterBgp.fromJson(
                json_['bgp'] as core.Map<core.String, core.dynamic>)
            : null,
        bgpPeers: json_.containsKey('bgpPeers')
            ? (json_['bgpPeers'] as core.List)
                .map((value) => RouterBgpPeer.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,
        encryptedInterconnectRouter:
            json_.containsKey('encryptedInterconnectRouter')
                ? json_['encryptedInterconnectRouter'] as core.bool
                : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        interfaces: json_.containsKey('interfaces')
            ? (json_['interfaces'] as core.List)
                .map((value) => RouterInterface.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        md5AuthenticationKeys: json_.containsKey('md5AuthenticationKeys')
            ? (json_['md5AuthenticationKeys'] as core.List)
                .map((value) => RouterMd5AuthenticationKey.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nats: json_.containsKey('nats')
            ? (json_['nats'] as core.List)
                .map((value) => RouterNat.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
      );