Initial commit
This commit is contained in:
27
lib/features/home/data/models/banner_response.dart
Normal file
27
lib/features/home/data/models/banner_response.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
class BannerResponse {
|
||||
BannerResponse({this.id, this.image, this.createdAt, this.updatedAt, this.v});
|
||||
|
||||
BannerResponse.fromJson(dynamic json) {
|
||||
id = json['_id'];
|
||||
image = json['image'];
|
||||
createdAt = json['createdAt'];
|
||||
updatedAt = json['updatedAt'];
|
||||
v = json['__v'];
|
||||
}
|
||||
|
||||
String? id;
|
||||
String? image;
|
||||
String? createdAt;
|
||||
String? updatedAt;
|
||||
int? v;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
map['_id'] = id;
|
||||
map['image'] = image;
|
||||
map['createdAt'] = createdAt;
|
||||
map['updatedAt'] = updatedAt;
|
||||
map['__v'] = v;
|
||||
return map;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user