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