ServerTLSSettings.fromJson constructor
Creates a ServerTLSSettings from JSON data.
Implementation
ServerTLSSettings.fromJson(Map<String, dynamic> json)
: this(
caCertificates: json['caCertificates'],
cipherSuites: json['cipherSuites'] != null
? List<String>.from(json['cipherSuites'])
: null,
credentialName: json['credentialName'],
httpsRedirect: json['httpsRedirect'],
minProtocolVersion:
_getTlsProtocolVersion(json['minProtocolVersion']),
maxProtocolVersion:
_getTlsProtocolVersion(json['maxProtocolVersion']),
mode: _getTlsMode(json['mode']),
privateKey: json['privateKey'],
serverCertificate: json['serverCertificate'],
subjectAltNames: json['subjectAltNames'] != null
? List<String>.from(json['subjectAltNames'])
: null,
verifyCertificateHash: json['verifyCertificateHash'] != null
? List<String>.from(json['verifyCertificateHash'])
: null,
verifyCertificateSpki: json['verifyCertificateSpki'] != null
? List<String>.from(json['verifyCertificateSpki'])
: null,
);