toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"dataToHash": dataToHash,
"digestAlgorithm": digestAlgorithm,
"version": version,
"paStatus": paStatus,
"signatureAlgorithm": signatureAlgorithm,
"issuer": issuer?.toJson(),
"serialNumber": serialNumber?.toJson(),
"signature": signature?.toJson(),
"subjectKeyIdentifier": subjectKeyIdentifier?.toJson(),
"signedAttributes": signedAttributes.map((e) => e.toJson()).toList(),
"certificateChain": certificateChain.map((e) => e.toJson()).toList(),
"notifications": notifications,
}.clearNulls();