toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
result['id'] = id;
result['results'] =
results.map((SearchResult value) => value.toJson()).toList();
result['isLast'] = isLast;
return result;
}