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