class TaskModel { int? id; String? title; String? note; int? isCompleted; String? date; String? startTime; String? endTime; int? color; int? remind; String? repeat; TaskModel({ this.id, this.title, this.note, this.isCompleted, this.date, this.startTime, this.endTime, this.color, this.remind, this.repeat, }); TaskModel.fromJson(Map json) { id = json['id']; title = json['title']; note = json['note']; isCompleted = json['isCompleted']; date = json['date']; startTime = json['startTime']; endTime = json['endTime']; color = json['color']; remind = json['remind']; repeat = json['repeat']; } Map toJson() { final Map data = {}; data['id'] = id; data['title'] = title; data['note'] = note; data['isCompleted'] = isCompleted; data['date'] = date; data['startTime'] = startTime; data['endTime'] = endTime; data['color'] = color; data['remind'] = remind; data['repeat'] = repeat; return data; } }