toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> jsonObject = {};
  jsonObject['id'] = id;
  jsonObject['controller'] = controller;
  jsonObject['type'] = type;
  if (publicKeyMultibase != null) {
    jsonObject['publicKeyMultibase'] = publicKeyMultibase;
  }
  if (publicKeyJwk != null) jsonObject['publicKeyJwk'] = publicKeyJwk;
  return jsonObject;
}