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