InterconnectAttachmentL2Forwarding.fromJson constructor
InterconnectAttachmentL2Forwarding.fromJson(
- Object? j
Implementation
factory InterconnectAttachmentL2Forwarding.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return InterconnectAttachmentL2Forwarding(
applianceMappings: switch (json['applianceMappings']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(
e.key,
): InterconnectAttachmentL2ForwardingApplianceMapping.fromJson(
e.value,
),
},
_ => throw const FormatException(
'"applianceMappings" is not an object',
),
},
defaultApplianceIpAddress: switch (json['defaultApplianceIpAddress']) {
null => null,
Object $1 => decodeString($1),
},
geneveHeader: switch (json['geneveHeader']) {
null => null,
Object $1 => InterconnectAttachmentL2ForwardingGeneveHeader.fromJson(
$1,
),
},
network: switch (json['network']) {
null => null,
Object $1 => decodeString($1),
},
tunnelEndpointIpAddress: switch (json['tunnelEndpointIpAddress']) {
null => null,
Object $1 => decodeString($1),
},
);
}