toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['success'] = success;
if (query != null) {
data['query'] = query!.toJson();
}
if (info != null) {
data['info'] = info!.toJson();
}
data['date'] = date;
data['result'] = result;
return data;
}