class CheckingInListDayEntity { CheckingInListDayEntity( {this.errorCode, this.description, this.errorMsg, this.data}); CheckingInListDayEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? Data.fromJson(json['data']) : null; } int? errorCode; String? description; String? errorMsg; Data? data; Map toJson() { final Map data = {}; data['errorCode'] = errorCode; data['description'] = description; data['errorMsg'] = errorMsg; if (this.data != null) { data['data'] = this.data!.toJson(); } return data; } } class Data { Data( {this.noPunchTimes, this.lateTimes, this.earlyTimes, this.attendanceRecordList}); Data.fromJson(Map json) { noPunchTimes = json['noPunchTimes']; lateTimes = json['lateTimes']; earlyTimes = json['earlyTimes']; if (json['attendanceRecordList'] != null) { attendanceRecordList = []; json['attendanceRecordList'].forEach((v) { attendanceRecordList!.add(AttendanceRecordDayList.fromJson(v)); }); } } int? noPunchTimes; int? lateTimes; int? earlyTimes; List? attendanceRecordList; Map toJson() { final Map data = {}; data['noPunchTimes'] = noPunchTimes; data['lateTimes'] = lateTimes; data['earlyTimes'] = earlyTimes; if (attendanceRecordList != null) { data['attendanceRecordList'] = attendanceRecordList!.map((v) => v.toJson()).toList(); } return data; } } class AttendanceRecordDayList { AttendanceRecordDayList( {this.headurl, this.isSelf, this.staffName, this.staffId, this.attendanceType, this.openingTimeEnd, this.openingTimeStart, this.colorType}); AttendanceRecordDayList.fromJson(Map json) { headurl = json['headurl']; isSelf = json['isSelf']; staffName = json['staffName']; staffId = json['staffId']; attendanceType = json['attendanceType']; openingTimeEnd = json['openingTimeEnd']; openingTimeStart = json['openingTimeStart']; colorType = json['colorType']; } String? headurl; int? isSelf; String? staffName; int? staffId; int? attendanceType; int? openingTimeEnd; int? openingTimeStart; int? colorType; Map toJson() { final Map data = {}; data['headurl'] = headurl; data['isSelf'] = isSelf; data['staffName'] = staffName; data['staffId'] = staffId; data['attendanceType'] = attendanceType; data['openingTimeEnd'] = openingTimeEnd; data['openingTimeStart'] = openingTimeStart; data['colorType'] = colorType; return data; } }