PlacesModel.fromJson constructor
Returns a PlacesModel from the given map
.
Implementation
factory PlacesModel.fromJson(Map<String, dynamic> json) {
return PlacesModel(
id: json['id'],
name: json['name'],
address: json['address'],
city: json['city'],
country: json['country'],
description: json['description'],
ratings: json['ratings'],
amenities: json['amenities'],
price: json['price'],
latitude: json['latitude'],
longitude: json['longitude'],
sourceLink: json['sourceLink']
);
}