toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> json = {};
  Map<String, dynamic> selectiveDisclosure = {};
  json['type'] = _type;
  json['verifiablePresentation'] = _verifiablePresentation;
  selectiveDisclosure['type'] = _sdType;
  selectiveDisclosure['plaintextCredentials'] = _plaintextCredentials;
  json['selectiveDisclosure'] = selectiveDisclosure;
  return json;
}