RouterBgpPeer.fromJson constructor
RouterBgpPeer.fromJson(
- Map json_
Implementation
RouterBgpPeer.fromJson(core.Map json_)
: this(
advertiseMode: json_['advertiseMode'] as core.String?,
advertisedGroups:
(json_['advertisedGroups'] as core.List?)
?.map((value) => value as core.String)
.toList(),
advertisedIpRanges:
(json_['advertisedIpRanges'] as core.List?)
?.map(
(value) => RouterAdvertisedIpRange.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
advertisedRoutePriority: json_['advertisedRoutePriority'] as core.int?,
bfd:
json_.containsKey('bfd')
? RouterBgpPeerBfd.fromJson(
json_['bfd'] as core.Map<core.String, core.dynamic>,
)
: null,
customLearnedIpRanges:
(json_['customLearnedIpRanges'] as core.List?)
?.map(
(value) => RouterBgpPeerCustomLearnedIpRange.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
customLearnedRoutePriority:
json_['customLearnedRoutePriority'] as core.int?,
enable: json_['enable'] as core.String?,
enableIpv4: json_['enableIpv4'] as core.bool?,
enableIpv6: json_['enableIpv6'] as core.bool?,
exportPolicies:
(json_['exportPolicies'] as core.List?)
?.map((value) => value as core.String)
.toList(),
importPolicies:
(json_['importPolicies'] as core.List?)
?.map((value) => value as core.String)
.toList(),
interfaceName: json_['interfaceName'] as core.String?,
ipAddress: json_['ipAddress'] as core.String?,
ipv4NexthopAddress: json_['ipv4NexthopAddress'] as core.String?,
ipv6NexthopAddress: json_['ipv6NexthopAddress'] as core.String?,
managementType: json_['managementType'] as core.String?,
md5AuthenticationKeyName:
json_['md5AuthenticationKeyName'] as core.String?,
name: json_['name'] as core.String?,
peerAsn: json_['peerAsn'] as core.int?,
peerIpAddress: json_['peerIpAddress'] as core.String?,
peerIpv4NexthopAddress: json_['peerIpv4NexthopAddress'] as core.String?,
peerIpv6NexthopAddress: json_['peerIpv6NexthopAddress'] as core.String?,
routerApplianceInstance:
json_['routerApplianceInstance'] as core.String?,
);