PoiResult.fromJson constructor

PoiResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

PoiResult.fromJson(Map<String, dynamic> json) {
  if (json['pois'] != null) {
    pois = <Pois>[];
    json['pois'].forEach((v) {
      pois!.add(Pois.fromJson(v));
    });
  }
  count = json['count']??0;
}