toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'protocol': protocol,
'keyExchange': keyExchange,
'cipher': cipher,
'certificate': [...certificate],
'subjectName': subjectName,
'issuer': issuer,
'validFrom': validFrom.toJson(),
'validTo': validTo.toJson(),
'certificateHasWeakSignature': certificateHasWeakSignature,
'certificateHasSha1Signature': certificateHasSha1Signature,
'modernSSL': modernSSL,
'obsoleteSslProtocol': obsoleteSslProtocol,
'obsoleteSslKeyExchange': obsoleteSslKeyExchange,
'obsoleteSslCipher': obsoleteSslCipher,
'obsoleteSslSignature': obsoleteSslSignature,
if (keyExchangeGroup != null) 'keyExchangeGroup': keyExchangeGroup,
if (mac != null) 'mac': mac,
if (certificateNetworkError != null)
'certificateNetworkError': certificateNetworkError,
};
}