toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> jsonObject = {
    'credential_issuer': credentialIssuer,
    'credentials': credentials
  };

  if (grants != null) {
    jsonObject['grants'] = grants;
  }

  return jsonObject;
}