TLSCertConfig.fromJson constructor
TLSCertConfig.fromJson(
- Object? json
Implementation
factory TLSCertConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'tls certificate');
return TLSCertConfig(
certFile: map['certificateFile'] as String?,
certStr: (map['certificate'] as List?)?.cast<String>(),
keyFile: map['keyFile'] as String?,
keyStr: (map['key'] as List?)?.cast<String>(),
usage: map['usage'] == null
? null
: TLSCertificateUsage.fromJson(map['usage']),
ocspStapling: map['ocspStapling'] as int?,
oneTimeLoading: map['oneTimeLoading'] as bool?,
buildChain: map['buildChain'] as bool?,
);
}