toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "docType": docType,
      "featureRef": featureRef,
      "version": version,
      "issuingCountry": issuingCountry,
      "docIssueDate": docIssueDate,
      "signature": signature?.toJson(),
      "signatureDate": signatureDate,
      "signer": signer,
      "certificate": certificate,
      "certificateChain": certificateChain.map((e) => e.toJson()).toList(),
      "docFeatures": docFeatures.map((e) => e.toJson()).toList(),
      "notifications": notifications,
    }.clearNulls();