CertificateSecurityState.fromJson constructor
CertificateSecurityState.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CertificateSecurityState.fromJson(Map<String, dynamic> json) {
return CertificateSecurityState(
protocol: json['protocol'] as String,
keyExchange: json['keyExchange'] as String,
keyExchangeGroup: json.containsKey('keyExchangeGroup')
? json['keyExchangeGroup'] as String
: null,
cipher: json['cipher'] as String,
mac: json.containsKey('mac') ? json['mac'] as String : null,
certificate:
(json['certificate'] as List).map((e) => e as String).toList(),
subjectName: json['subjectName'] as String,
issuer: json['issuer'] as String,
validFrom: network.TimeSinceEpoch.fromJson(json['validFrom'] as num),
validTo: network.TimeSinceEpoch.fromJson(json['validTo'] as num),
certificateNetworkError: json.containsKey('certificateNetworkError')
? json['certificateNetworkError'] as String
: null,
certificateHasWeakSignature:
json['certificateHasWeakSignature'] as bool? ?? false,
certificateHasSha1Signature:
json['certificateHasSha1Signature'] as bool? ?? false,
modernSSL: json['modernSSL'] as bool? ?? false,
obsoleteSslProtocol: json['obsoleteSslProtocol'] as bool? ?? false,
obsoleteSslKeyExchange: json['obsoleteSslKeyExchange'] as bool? ?? false,
obsoleteSslCipher: json['obsoleteSslCipher'] as bool? ?? false,
obsoleteSslSignature: json['obsoleteSslSignature'] as bool? ?? false,
);
}