toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> jsonObject = {};
  Map<String, dynamic> options = {};
  options['domain'] = domain;
  options['challenge'] = challenge;
  jsonObject['options'] = options;
  jsonObject['presentation_definition'] = presentationDefinition.toJson();
  return jsonObject;
}