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