PlacesModel constructor

PlacesModel({
  1. required int id,
  2. required String name,
  3. required String address,
  4. String? city,
  5. String? country,
  6. String? description,
  7. double? ratings,
  8. String? amenities,
  9. String? price,
  10. required double latitude,
  11. required double longitude,
  12. String? sourceLink,
})

Implementation

PlacesModel({
  required this.id,
  required this.name,
  required this.address,
  this.city,
  this.country,
  this.description,
  this.ratings,
  this.amenities,
  this.price,
  required this.latitude,
  required this.longitude,
  this.sourceLink
});