INFRA: Set Up Project.
This commit is contained in:
28
lib/models/popular_destination.dart
Normal file
28
lib/models/popular_destination.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
class PopularDestination {
|
||||
String? image;
|
||||
String? id;
|
||||
String? title;
|
||||
double? latitude;
|
||||
double? longitude;
|
||||
|
||||
PopularDestination(
|
||||
{this.image, this.id, this.title, this.latitude, this.longitude});
|
||||
|
||||
PopularDestination.fromJson(Map<String, dynamic> json) {
|
||||
image = json['image'];
|
||||
id = json['id'];
|
||||
title = json['title'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['image'] = image;
|
||||
data['id'] = id;
|
||||
data['title'] = title;
|
||||
data['latitude'] = latitude;
|
||||
data['longitude'] = longitude;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user