PlacesModel class
Class that defines the Places
entity, which contains its properties and
methods.
Constructors
- PlacesModel({required int id, required String name, required String address, String? city, String? country, String? description, double? ratings, String? amenities, String? price, required double latitude, required double longitude, String? sourceLink})
-
PlacesModel.fromJson(Map<
String, dynamic> json) -
Returns a PlacesModel from the given
map
.factory
Properties
- address ↔ String
-
Property that defines the
address
.getter/setter pair - amenities ↔ String?
-
Property that defines the
amenities
.getter/setter pair - city ↔ String?
-
Property that defines the
city
.getter/setter pair - country ↔ String?
-
Property that defines the
country
.getter/setter pair - description ↔ String?
-
Property that defines the
description
.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
Property that defines the
id
.getter/setter pair - latitude ↔ double
-
Property that defines the
latitude
.getter/setter pair - longitude ↔ double
-
Property that defines the
longitude
.getter/setter pair - name ↔ String
-
Property that defines the
name
.getter/setter pair - price ↔ String?
-
Property that defines the
price
.getter/setter pair - ratings ↔ double?
-
Property that defines the
ratings
.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceLink ↔ String?
-
Property that defines the
sourceLink
.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a Map from the current PlacesModel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited