toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'protocol': protocol,
'keyExchange': keyExchange,
'cipher': cipher,
'certificateId': certificateId.toJson(),
'subjectName': subjectName,
'sanList': [...sanList],
'issuer': issuer,
'validFrom': validFrom.toJson(),
'validTo': validTo.toJson(),
'signedCertificateTimestampList':
signedCertificateTimestampList.map((e) => e.toJson()).toList(),
'certificateTransparencyCompliance':
certificateTransparencyCompliance.toJson(),
'encryptedClientHello': encryptedClientHello,
if (keyExchangeGroup != null) 'keyExchangeGroup': keyExchangeGroup,
if (mac != null) 'mac': mac,
if (serverSignatureAlgorithm != null)
'serverSignatureAlgorithm': serverSignatureAlgorithm,
};
}