InterconnectsGetMacsecConfigResponse.fromJson constructor

InterconnectsGetMacsecConfigResponse.fromJson(
  1. Object? j
)

Implementation

factory InterconnectsGetMacsecConfigResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return InterconnectsGetMacsecConfigResponse(
    etag: switch (json['etag']) {
      null => null,
      Object $1 => decodeString($1),
    },
    result: switch (json['result']) {
      null => null,
      Object $1 => InterconnectMacsecConfig.fromJson($1),
    },
  );
}