toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (pois != null) {
    data['pois'] = pois!.map((v) => v.toJson()).toList();
  }
  data['count'] = count??0;
  return data;
}