class CropProgressLog { final String id; final String scheduleId; final DateTime date; final String activity; final String? notes; CropProgressLog({ required this.id, required this.scheduleId, required this.date, required this.activity, this.notes, }); factory CropProgressLog.fromJson(Map json) { return CropProgressLog( id: json['id'], scheduleId: json['schedule_id'], date: DateTime.parse(json['date']), activity: json['activity'], notes: json['notes'], ); } }