You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
3.0 KiB
Dart
105 lines
3.0 KiB
Dart
// class TutorialNotificationModel {
|
|
// List<Data>? data;
|
|
// bool? isSuccessful;
|
|
// String? message;
|
|
// int? statusCode;
|
|
//
|
|
// TutorialNotificationModel({this.data, this.isSuccessful, this.message, this.statusCode});
|
|
//
|
|
// TutorialNotificationModel.fromJson(Map<String, dynamic> json) {
|
|
// if (json['data'] != null) {
|
|
// data = <Data>[];
|
|
// json['data'].forEach((v) {
|
|
// data!.add(new Data.fromJson(v));
|
|
// });
|
|
// }
|
|
// isSuccessful = json['isSuccessful'];
|
|
// message = json['message'];
|
|
// statusCode = json['statusCode'];
|
|
// }
|
|
//
|
|
// Map<String, dynamic> toJson() {
|
|
// final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
// if (this.data != null) {
|
|
// data['data'] = this.data!.map((v) => v.toJson()).toList();
|
|
// }
|
|
// data['isSuccessful'] = this.isSuccessful;
|
|
// data['message'] = this.message;
|
|
// data['statusCode'] = this.statusCode;
|
|
//
|
|
// return data;
|
|
// }
|
|
// }
|
|
|
|
class TutorialNotificationModel {
|
|
String? tutorialNotificationId;
|
|
String? tutorialName;
|
|
String? tutorialDescription;
|
|
String? startDate;
|
|
String? endDate;
|
|
String? fileName;
|
|
String? contentType;
|
|
String? filePath;
|
|
int? orderNo;
|
|
bool? isActive;
|
|
int? isStatus;
|
|
String? created;
|
|
String? createdBy;
|
|
String? modified;
|
|
String? modifiedBy;
|
|
|
|
TutorialNotificationModel({this.tutorialNotificationId,
|
|
this.tutorialName,
|
|
this.tutorialDescription,
|
|
this.startDate,
|
|
this.endDate,
|
|
this.fileName,
|
|
this.contentType,
|
|
this.filePath,
|
|
this.orderNo,
|
|
this.isActive,
|
|
this.isStatus,
|
|
this.created,
|
|
this.createdBy,
|
|
this.modified,
|
|
this.modifiedBy});
|
|
|
|
TutorialNotificationModel.fromJson(Map<String, dynamic> json) {
|
|
tutorialNotificationId = json['tutorialNotificationId'];
|
|
tutorialName = json['tutorialName'];
|
|
tutorialDescription = json['tutorialDescription'];
|
|
startDate = json['startDate'];
|
|
endDate = json['endDate'];
|
|
fileName = json['fileName'];
|
|
contentType = json['contentType'];
|
|
filePath = json['filePath'];
|
|
orderNo = json['orderNo'];
|
|
isActive = json['isActive'];
|
|
isStatus = json['isStatus'];
|
|
created = json['created'];
|
|
createdBy = json['createdBy'];
|
|
modified = json['modified'];
|
|
modifiedBy = json['modifiedBy'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['tutorialNotificationId'] = this.tutorialNotificationId;
|
|
data['tutorialName'] = this.tutorialName;
|
|
data['tutorialDescription'] = this.tutorialDescription;
|
|
data['startDate'] = this.startDate;
|
|
data['endDate'] = this.endDate;
|
|
data['fileName'] = this.fileName;
|
|
data['contentType'] = this.contentType;
|
|
data['filePath'] = this.filePath;
|
|
data['orderNo'] = this.orderNo;
|
|
data['isActive'] = this.isActive;
|
|
data['isStatus'] = this.isStatus;
|
|
data['created'] = this.created;
|
|
data['createdBy'] = this.createdBy;
|
|
data['modified'] = this.modified;
|
|
data['modifiedBy'] = this.modifiedBy;
|
|
return data;
|
|
}
|
|
}
|