toJson method
Converts the RequestVC instance to a JSON map.
Implementation
Map<String, dynamic> toJson() {
try {
final Map<String, dynamic> data = {};
data["vcType"] = vcType;
if (query != null) {
data["query"] = query!.toJson();
}
return data;
} catch (e) {
print("Error in RequestVC.toJson: $e");
rethrow;
}
}