InterconnectAttachmentConfigurationConstraints.fromJson constructor
InterconnectAttachmentConfigurationConstraints.fromJson(
- Object? j
Implementation
factory InterconnectAttachmentConfigurationConstraints.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return InterconnectAttachmentConfigurationConstraints(
bgpMd5: switch (json['bgpMd5']) {
null => null,
Object $1 => decodeString($1),
},
bgpPeerAsnRanges: switch (json['bgpPeerAsnRanges']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
InterconnectAttachmentConfigurationConstraintsBgpPeerAsnrange.fromJson(
i,
),
],
_ => throw const FormatException('"bgpPeerAsnRanges" is not a list'),
},
);
}