class AttendanceDashboard { int? attStatus; List? attHistory; int? sessionExists; AttendanceDashboard({this.attStatus, this.attHistory, this.sessionExists}); AttendanceDashboard.fromJson(Map json) { attStatus = json['att_status']; if (json['att_history'] != null) { attHistory = []; json['att_history'].forEach((v) { attHistory!.add(new AttHistory.fromJson(v)); }); } sessionExists = json['session_exists']; } Map toJson() { final Map data = new Map(); data['att_status'] = this.attStatus; if (this.attHistory != null) { data['att_history'] = this.attHistory!.map((v) => v.toJson()).toList(); } data['session_exists'] = this.sessionExists; return data; } } class AttHistory { String? date; String? checkInTime; String? checkOutTime; AttHistory({this.date, this.checkInTime, this.checkOutTime}); AttHistory.fromJson(Map json) { date = json['date']; checkInTime = json['check_in_time']; checkOutTime = json['check_out_time']; } Map toJson() { final Map data = new Map(); data['date'] = this.date; data['check_in_time'] = this.checkInTime; data['check_out_time'] = this.checkOutTime; return data; } }