toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "notAfter": notAfter?.toJson(),
      "notBefore": notBefore?.toJson(),
    }.clearNulls();