TaskCommentsModel.fromJson constructor

TaskCommentsModel.fromJson(
  1. dynamic json
)

Implementation

TaskCommentsModel.fromJson(dynamic json) {
  _id = json['id'];
  _comment = json['comment'];
  _userId = json['user_id'];
  _profilePic = json['profile_pic'];
  _userName = json['user_name'];
  _createdAt = json['created_at'];
  _deletedAt = json['deleted_at'];
  _taskId = json['task_id'];
  _attachmentLink = json['attachment_link'];
  _fileExtension = json['file_extension'];
  _fileName = json['file_name'];
  _thumbnailPath = json['thumbnail_path'];
}