toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'query': query,
'building': building,
'category': category,
'city': city,
'pageNum': pageNum,
'pageSize': pageSize,
'cityLimit': cityLimit,
'requireSubPois': requireSubPois,
'distanceSort': distanceSort,
'location': location?.toJson(),
'requireExtension': requireExtension,
'searchBound': searchBound?.toJson(),
};
}