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