TourModel.fromMap constructor
Returns a TourModel from the given map
.
Implementation
factory TourModel.fromMap(Map<String, dynamic> map) {
return TourModel(
name: map['name'],
numberOfPlaces: map['numberOfPlaces'],
lookAtCoordinates: List<LookAtModel>.from(
map['lookAtCoordinates']?.map((x) => LookAtModel.fromMap(x))),
// ballonContentOfPlacemarks:
// List<String>.from(map['ballonContentOfPlacemarks']),
poisNames: List<String>.from(map['poisNames']),
);
}