toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "type": type.value,
      "extensions": extensions.map((e) => e.toJson()).toList(),
      "fileName": fileName?.toJson(),
      "issuer": issuer?.toJson(),
      "notifications": notifications,
      "origin": origin,
      "paStatus": paStatus,
      "serialNumber": serialNumber,
      "signatureAlgorithm": signatureAlgorithm,
      "subject": subject?.toJson(),
      "subjectPKAlgorithm": subjectPKAlgorithm,
      "validity": validity?.toJson(),
      "version": version,
    }.clearNulls();