first commit
This commit is contained in:
33
lib/Screens/Home/Model/banner_model.dart
Normal file
33
lib/Screens/Home/Model/banner_model.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
class Banner {
|
||||
Banner({
|
||||
this.id,
|
||||
this.imageUrl,
|
||||
this.status,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
});
|
||||
|
||||
Banner.fromJson(dynamic json) {
|
||||
id = json['id'];
|
||||
imageUrl = json['imageUrl'];
|
||||
status = json['status'];
|
||||
createdAt = json['created_at'];
|
||||
updatedAt = json['updated_at'];
|
||||
}
|
||||
|
||||
num? id;
|
||||
String? imageUrl;
|
||||
num? status;
|
||||
String? createdAt;
|
||||
String? updatedAt;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['id'] = id;
|
||||
map['imageUrl'] = imageUrl;
|
||||
map['status'] = status;
|
||||
map['created_at'] = createdAt;
|
||||
map['updated_at'] = updatedAt;
|
||||
return map;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user