28 lines
604 B
Dart
28 lines
604 B
Dart
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;
|
|
}
|
|
}
|