ITG ADs update
parent
5098aa7f90
commit
a48d703642
@ -1,108 +1,156 @@
|
||||
class Advertisement {
|
||||
int? advertisementId;
|
||||
String? advertisementTitle;
|
||||
int? durationInSeconds;
|
||||
bool? showDelete;
|
||||
dynamic acknowledgment;
|
||||
late bool isOptional;
|
||||
List<ViewAttachFileColl>? viewAttachFileColl;
|
||||
int? skipButtonId;
|
||||
List<ActionButtonsColl>? actionButtonsColl;
|
||||
bool? isActive;
|
||||
num? pageSize;
|
||||
num? pageNo;
|
||||
num? languageId;
|
||||
|
||||
Advertisement({
|
||||
this.advertisementId,
|
||||
this.advertisementTitle,
|
||||
this.durationInSeconds,
|
||||
this.showDelete,
|
||||
this.acknowledgment,
|
||||
required this.isOptional,
|
||||
// this.skipBtnTextEn,
|
||||
// this.skipBtnTextAr,
|
||||
this.viewAttachFileColl,
|
||||
this.skipButtonId,
|
||||
this.actionButtonsColl,
|
||||
this.isActive,
|
||||
this.pageSize,
|
||||
this.pageNo,
|
||||
this.languageId,
|
||||
this.isOptional,
|
||||
this.skipButtonTextEn,
|
||||
this.skipButtonTextAr,
|
||||
});
|
||||
|
||||
final int? advertisementId;
|
||||
final String? advertisementTitle;
|
||||
final int? durationInSeconds;
|
||||
final bool? showDelete;
|
||||
final dynamic acknowledgment;
|
||||
final List<ViewAttachFileColl>? viewAttachFileColl;
|
||||
final bool? isActive;
|
||||
final dynamic pageSize;
|
||||
final dynamic pageNo;
|
||||
final dynamic languageId;
|
||||
final bool? isOptional;
|
||||
final String? skipButtonTextEn;
|
||||
final String? skipButtonTextAr;
|
||||
|
||||
factory Advertisement.fromJson(Map<String, dynamic> json) => Advertisement(
|
||||
advertisementId: json["advertisementId"] == null ? null : json["advertisementId"],
|
||||
advertisementTitle: json["advertisementTitle"] == null ? null : json["advertisementTitle"],
|
||||
durationInSeconds: json["durationInSeconds"] == null ? null : json["durationInSeconds"],
|
||||
showDelete: json["showDelete"] == null ? null : json["showDelete"],
|
||||
acknowledgment: json["acknowledgment"],
|
||||
viewAttachFileColl: json["viewAttachFileColl"] == null ? null : List<ViewAttachFileColl>.from(json["viewAttachFileColl"].map((x) => ViewAttachFileColl.fromJson(x))),
|
||||
isActive: json["isActive"] == null ? null : json["isActive"],
|
||||
pageSize: json["pageSize"],
|
||||
pageNo: json["pageNo"],
|
||||
languageId: json["languageId"],
|
||||
isOptional: json["isOptional"] == null ? null : json["isOptional"],
|
||||
skipButtonTextEn: json["skipBtnTextEn"] == null ? null : json["skipBtnTextEn"],
|
||||
skipButtonTextAr: json["skipBtnTextAr"] == null ? null : json["skipBtnTextAr"],
|
||||
);
|
||||
Advertisement.fromJson(Map<String, dynamic> json) {
|
||||
advertisementId = json['advertisementId'];
|
||||
advertisementTitle = json['advertisementTitle'];
|
||||
durationInSeconds = json['durationInSeconds'];
|
||||
showDelete = json['showDelete'];
|
||||
acknowledgment = json['acknowledgment'];
|
||||
isOptional = json['isOptional'];
|
||||
// skipBtnTextEn = json['skipBtnTextEn'];
|
||||
// skipBtnTextAr = json['skipBtnTextAr'];
|
||||
if (json['viewAttachFileColl'] != null) {
|
||||
viewAttachFileColl = <ViewAttachFileColl>[];
|
||||
json['viewAttachFileColl'].forEach((v) {
|
||||
viewAttachFileColl!.add(ViewAttachFileColl.fromJson(v));
|
||||
});
|
||||
}
|
||||
skipButtonId = json['skipButtonId'];
|
||||
if (json['actionButtonsColl'] != null) {
|
||||
actionButtonsColl = <ActionButtonsColl>[];
|
||||
json['actionButtonsColl'].forEach((v) {
|
||||
actionButtonsColl!.add(ActionButtonsColl.fromJson(v));
|
||||
});
|
||||
}
|
||||
isActive = json['isActive'];
|
||||
pageSize = json['pageSize'];
|
||||
pageNo = json['pageNo'];
|
||||
languageId = json['languageId'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"advertisementId": advertisementId == null ? null : advertisementId,
|
||||
"advertisementTitle": advertisementTitle == null ? null : advertisementTitle,
|
||||
"durationInSeconds": durationInSeconds == null ? null : durationInSeconds,
|
||||
"showDelete": showDelete == null ? null : showDelete,
|
||||
"acknowledgment": acknowledgment,
|
||||
"viewAttachFileColl": viewAttachFileColl == null ? null : List<dynamic>.from(viewAttachFileColl!.map((x) => x.toJson())),
|
||||
"isActive": isActive == null ? null : isActive,
|
||||
"pageSize": pageSize,
|
||||
"pageNo": pageNo,
|
||||
"languageId": languageId,
|
||||
};
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> data = Map<String, dynamic>();
|
||||
data['advertisementId'] = this.advertisementId;
|
||||
data['advertisementTitle'] = this.advertisementTitle;
|
||||
data['durationInSeconds'] = this.durationInSeconds;
|
||||
data['showDelete'] = this.showDelete;
|
||||
data['acknowledgment'] = this.acknowledgment;
|
||||
data['isOptional'] = this.isOptional;
|
||||
// data['skipBtnTextEn'] = this.skipBtnTextEn;
|
||||
// data['skipBtnTextAr'] = this.skipBtnTextAr;
|
||||
if (this.viewAttachFileColl != null) {
|
||||
data['viewAttachFileColl'] = this.viewAttachFileColl!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['skipButtonId'] = this.skipButtonId;
|
||||
if (this.actionButtonsColl != null) {
|
||||
data['actionButtonsColl'] = this.actionButtonsColl!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['isActive'] = this.isActive;
|
||||
data['pageSize'] = this.pageSize;
|
||||
data['pageNo'] = this.pageNo;
|
||||
data['languageId'] = this.languageId;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ViewAttachFileColl {
|
||||
ViewAttachFileColl({
|
||||
this.attachmentId,
|
||||
this.fileName,
|
||||
this.contentType,
|
||||
this.attachFileStream,
|
||||
this.base64String,
|
||||
this.isActive,
|
||||
this.referenceItemId,
|
||||
this.content,
|
||||
this.filePath,
|
||||
});
|
||||
dynamic attachmentId;
|
||||
String? fileName;
|
||||
String? contentType;
|
||||
dynamic attachFileStream;
|
||||
String? base64String;
|
||||
dynamic isActive;
|
||||
dynamic referenceItemId;
|
||||
dynamic content;
|
||||
dynamic filePath;
|
||||
|
||||
ViewAttachFileColl({this.attachmentId, this.fileName, this.contentType, this.attachFileStream, this.base64String, this.isActive, this.referenceItemId, this.content, this.filePath});
|
||||
|
||||
ViewAttachFileColl.fromJson(Map<String, dynamic> json) {
|
||||
attachmentId = json['attachmentId'];
|
||||
fileName = json['fileName'];
|
||||
contentType = json['contentType'];
|
||||
attachFileStream = json['attachFileStream'];
|
||||
base64String = json['base64String'];
|
||||
isActive = json['isActive'];
|
||||
referenceItemId = json['referenceItemId'];
|
||||
content = json['content'];
|
||||
filePath = json['filePath'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['attachmentId'] = this.attachmentId;
|
||||
data['fileName'] = this.fileName;
|
||||
data['contentType'] = this.contentType;
|
||||
data['attachFileStream'] = this.attachFileStream;
|
||||
data['base64String'] = this.base64String;
|
||||
data['isActive'] = this.isActive;
|
||||
data['referenceItemId'] = this.referenceItemId;
|
||||
data['content'] = this.content;
|
||||
data['filePath'] = this.filePath;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ActionButtonsColl {
|
||||
late int actionButtonId;
|
||||
late String btnTextEn;
|
||||
late String btnTextAr;
|
||||
late String actionValue;
|
||||
late dynamic iconOrImage;
|
||||
late int orderNo;
|
||||
|
||||
final dynamic attachmentId;
|
||||
final String? fileName;
|
||||
final String? contentType;
|
||||
final dynamic attachFileStream;
|
||||
final String? base64String;
|
||||
final dynamic isActive;
|
||||
final dynamic referenceItemId;
|
||||
final dynamic content;
|
||||
final dynamic filePath;
|
||||
ActionButtonsColl({required this.actionButtonId, required this.btnTextEn, required this.btnTextAr, required this.actionValue, required this.iconOrImage, required this.orderNo});
|
||||
|
||||
factory ViewAttachFileColl.fromJson(Map<String, dynamic> json) => ViewAttachFileColl(
|
||||
attachmentId: json["attachmentId"],
|
||||
fileName: json["fileName"] == null ? null : json["fileName"],
|
||||
contentType: json["contentType"] == null ? null : json["contentType"],
|
||||
attachFileStream: json["attachFileStream"],
|
||||
base64String: json["base64String"] == null ? null : json["base64String"],
|
||||
isActive: json["isActive"],
|
||||
referenceItemId: json["referenceItemId"],
|
||||
content: json["content"],
|
||||
filePath: json["filePath"],
|
||||
);
|
||||
ActionButtonsColl.fromJson(Map<String, dynamic> json) {
|
||||
actionButtonId = json['actionButtonId'];
|
||||
btnTextEn = json['btnTextEn'];
|
||||
btnTextAr = json['btnTextAr'];
|
||||
actionValue = json['actionValue'];
|
||||
iconOrImage = json['iconOrImage'];
|
||||
orderNo = json['orderNo'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"attachmentId": attachmentId,
|
||||
"fileName": fileName == null ? null : fileName,
|
||||
"contentType": contentType == null ? null : contentType,
|
||||
"attachFileStream": attachFileStream,
|
||||
"base64String": base64String == null ? null : base64String,
|
||||
"isActive": isActive,
|
||||
"referenceItemId": referenceItemId,
|
||||
"content": content,
|
||||
"filePath": filePath,
|
||||
};
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['actionButtonId'] = this.actionButtonId;
|
||||
data['btnTextEn'] = this.btnTextEn;
|
||||
data['btnTextAr'] = this.btnTextAr;
|
||||
data['actionValue'] = this.actionValue;
|
||||
data['iconOrImage'] = this.iconOrImage;
|
||||
data['orderNo'] = this.orderNo;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue