toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "version": version,
      "issuingCountry": issuingCountry,
      "message": message,
      "signatureAlgorithm": signatureAlgorithm,
      "signature": signature?.toJson(),
      "certificate": certificate?.toJson(),
      "certificateChain": certificateChain.map((e) => e.toJson()).toList(),
      "notifications": notifications,
    }.clearNulls();