change modes

This commit is contained in:
Mohamed Nouffer
2022-07-09 22:51:34 +05:30
parent 131a8995e0
commit ce105a6754
22 changed files with 828 additions and 293 deletions

View File

@ -0,0 +1,77 @@
class Destination {
String? name;
String? address;
String? phone;
String? email;
String? webcontents;
String? videos;
String? category;
int? series;
double? lat;
double? lon;
int? location_id;
int? list_order;
String? photos;
double? checkin_radious;
int? auto_checkin;
Destination({
this.name,
this.address,
this.phone,
this.email,
this.webcontents,
this.videos,
this.category,
this.series,
this.lat,
this.lon,
this.location_id,
this.list_order,
this.photos,
this.checkin_radious,
this.auto_checkin
});
factory Destination.fromMap(Map<String, dynamic> json) => Destination(
name: json['name'],
address: json['address'],
phone: json['phone'],
email: json['email'],
webcontents: json['webcontents'],
videos: json['videos'],
category: json['category'],
series: json['series'],
lat: json['lat'],
lon: json['lon'],
location_id: json['location_id'],
list_order: json['list_order'],
photos: json['category'],
checkin_radious: json['checkin_radious'],
auto_checkin:json['auto_checkin']
);
Map<String, dynamic> toMap(){
return {
'name':name,
'address': address,
'phone': phone,
'email': email,
'webcontents': webcontents,
'videos': videos,
'category':category,
'series':series,
'lat':lat,
'lon':lon,
'location_id':location_id,
'list_order':list_order,
'photos':photos,
'checkin_radious': checkin_radious,
'auto_checkin': auto_checkin
};
}
}