mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
47 lines
1.1 KiB
Dart
47 lines
1.1 KiB
Dart
class SceneModel {
|
|
final String id;
|
|
final String name;
|
|
final String description;
|
|
final String imageUrl;
|
|
final String location;
|
|
final String type;
|
|
final String rating;
|
|
final String price;
|
|
final String duration;
|
|
final String date;
|
|
final String time;
|
|
final String status;
|
|
|
|
SceneModel({
|
|
required this.id,
|
|
required this.name,
|
|
required this.description,
|
|
required this.imageUrl,
|
|
required this.location,
|
|
required this.type,
|
|
required this.rating,
|
|
required this.price,
|
|
required this.duration,
|
|
required this.date,
|
|
required this.time,
|
|
required this.status,
|
|
});
|
|
|
|
factory SceneModel.fromJson(Map<String, dynamic> json) {
|
|
return SceneModel(
|
|
id: json['id'],
|
|
name: json['name'],
|
|
description: json['description'],
|
|
imageUrl: json['imageUrl'],
|
|
location: json['location'],
|
|
type: json['type'],
|
|
rating: json['rating'],
|
|
price: json['price'],
|
|
duration: json['duration'],
|
|
date: json['date'],
|
|
time: json['time'],
|
|
status: json['status'],
|
|
);
|
|
}
|
|
}
|