toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {
'credential_issuer': credentialIssuer,
'credentials': credentials
};
if (grants != null) {
jsonObject['grants'] = grants;
}
return jsonObject;
}