toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
jsonObject['proofType'] = proofType;
if (proofPurpose != null) jsonObject['proofPurpose'];
if (created != null) jsonObject['created'] = created!.toIso8601String();
if (challenge != null) jsonObject['challenge'] = challenge;
if (domain != null) jsonObject['domain'] = domain;
if (credentialStatusType != null) {
jsonObject['credentialStatus'] = {'type': credentialStatusType};
}
return jsonObject;
}