|
- class NotificationDTO {
- int? id;
- String? subject;
- String? message;
- int? tbCropId;
- int? tbEntityId;
- int? externalId;
- String? contents;
- String? createdDate;
- String? sendDate;
- int? isRead;
- String? type;
- String? activityTypeName;
- int? activityTypeId;
-
- NotificationDTO({
- this.id,
- this.subject,
- this.message,
- this.tbCropId,
- this.tbEntityId,
- this.externalId,
- this.contents,
- this.createdDate,
- this.sendDate,
- this.type,
- this.isRead,
- this.activityTypeName,
- this.activityTypeId,
- });
- NotificationDTO.clone(NotificationDTO noti) {
- this.id = noti.id;
- this.contents = noti.contents;
- this.tbCropId = noti.tbCropId;
- this.tbEntityId = noti.tbEntityId;
- this.externalId = noti.externalId;
- this.subject = noti.subject;
- this.message = noti.message;
- this.createdDate = noti.createdDate;
- this.sendDate = noti.sendDate;
- this.type = noti.type;
- this.isRead = noti.isRead;
- this.activityTypeName = noti.activityTypeName;
- this.activityTypeId = noti.activityTypeId;
- }
- NotificationDTO.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- subject = json['subject'];
- message = json['message'];
- tbCropId = json['tbCropId'];
- tbEntityId = json['tbEntityId'];
- externalId = json['externalId'];
- contents = json['contents'];
- createdDate = json['createdDate'];
- sendDate = json['sendDate'];
- type = json['type'];
- isRead = json['isRead'];
- activityTypeName = json['activityTypeName'];
- activityTypeId = json['activityTypeId'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['subject'] = this.subject;
- data['message'] = this.message;
- data['tbCropId'] = this.tbCropId;
- data['tbEntityId'] = this.tbEntityId;
- data['externalId'] = this.externalId;
- data['contents'] = this.contents;
- data['createdDate'] = this.createdDate;
- data['sendDate'] = this.sendDate;
- data['type'] = this.type;
- data['isRead'] = this.isRead;
- data['activityTypeName'] = this.activityTypeName;
- data['activityTypeId'] = this.activityTypeId;
- return data;
- }
- }
|