70 lines
1.8 KiB
Dart
70 lines
1.8 KiB
Dart
|
|
class CheckingInSetEntity {
|
|
int? errorCode;
|
|
String? description;
|
|
String? errorMsg;
|
|
CheckingInSetInfo? data;
|
|
|
|
CheckingInSetEntity(
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
CheckingInSetEntity.fromJson(Map<String, dynamic> json) {
|
|
errorCode = json['errorCode'];
|
|
description = json['description'];
|
|
errorMsg = json['errorMsg'];
|
|
data = json['data'] != null ? CheckingInSetInfo.fromJson(json['data']) : null;
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['errorCode'] = errorCode;
|
|
data['description'] = description;
|
|
data['errorMsg'] = errorMsg;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.toJson();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class CheckingInSetInfo {
|
|
int? staffNum;
|
|
int? workEndTime;
|
|
int? attendanceType;
|
|
int? companyId;
|
|
String? companyName;
|
|
int? workStartTime;
|
|
List<int>? workDay;
|
|
|
|
CheckingInSetInfo(
|
|
{this.staffNum,
|
|
this.workEndTime,
|
|
this.attendanceType,
|
|
this.companyId,
|
|
this.companyName,
|
|
this.workStartTime,
|
|
this.workDay});
|
|
|
|
CheckingInSetInfo.fromJson(Map<String, dynamic> json) {
|
|
staffNum = json['staffNum'];
|
|
workEndTime = json['workEndTime'];
|
|
attendanceType = json['attendanceType'];
|
|
companyId = json['companyId'];
|
|
companyName = json['companyName'];
|
|
workStartTime = json['workStartTime'];
|
|
workDay = json['workDay'].cast<int>();
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['staffNum'] = staffNum;
|
|
data['workEndTime'] = workEndTime;
|
|
data['attendanceType'] = attendanceType;
|
|
data['companyId'] = companyId;
|
|
data['companyName'] = companyName;
|
|
data['workStartTime'] = workStartTime;
|
|
data['workDay'] = workDay;
|
|
return data;
|
|
}
|
|
}
|