52 lines
1.3 KiB
Dart
52 lines
1.3 KiB
Dart
class BannerModel {
|
|
String? bannerUid;
|
|
String? name;
|
|
String? link;
|
|
String? description;
|
|
String? startDate;
|
|
String? endDate;
|
|
String? fileUrl;
|
|
String? fileName;
|
|
bool? isUse;
|
|
int? statusId;
|
|
|
|
BannerModel(
|
|
{this.bannerUid,
|
|
this.name,
|
|
this.link,
|
|
this.description,
|
|
this.startDate,
|
|
this.endDate,
|
|
this.fileUrl,
|
|
this.fileName,
|
|
this.isUse,
|
|
this.statusId});
|
|
|
|
BannerModel.fromJson(Map<String, dynamic> json) {
|
|
bannerUid = json['banner_uid'];
|
|
name = json['name'];
|
|
link = json['link'];
|
|
description = json['description'];
|
|
startDate = json['start_date'];
|
|
endDate = json['end_date'];
|
|
fileUrl = json['file_url'];
|
|
fileName = json['file_name'];
|
|
isUse = json['is_use'];
|
|
statusId = json['status_id'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['banner_uid'] = this.bannerUid;
|
|
data['name'] = this.name;
|
|
data['link'] = this.link;
|
|
data['description'] = this.description;
|
|
data['start_date'] = this.startDate;
|
|
data['end_date'] = this.endDate;
|
|
data['file_url'] = this.fileUrl;
|
|
data['file_name'] = this.fileName;
|
|
data['is_use'] = this.isUse;
|
|
data['status_id'] = this.statusId;
|
|
return data;
|
|
}
|
|
} |