BareMetalBgpLbConfig.fromJson constructor

BareMetalBgpLbConfig.fromJson(
  1. Map json_
)

Implementation

BareMetalBgpLbConfig.fromJson(core.Map json_)
    : this(
        addressPools: json_.containsKey('addressPools')
            ? (json_['addressPools'] as core.List)
                .map((value) => BareMetalLoadBalancerAddressPool.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        asn: json_.containsKey('asn') ? json_['asn'] as core.String : null,
        bgpPeerConfigs: json_.containsKey('bgpPeerConfigs')
            ? (json_['bgpPeerConfigs'] as core.List)
                .map((value) => BareMetalBgpPeerConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        loadBalancerNodePoolConfig:
            json_.containsKey('loadBalancerNodePoolConfig')
                ? BareMetalLoadBalancerNodePoolConfig.fromJson(
                    json_['loadBalancerNodePoolConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );