a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网 b. 开锁时:有网络时间则同步,无网络则不同步时间 c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致 2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
82 lines
2.1 KiB
Dart
Executable File
82 lines
2.1 KiB
Dart
Executable File
class CheckingInDetailEntity {
|
|
|
|
CheckingInDetailEntity(
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
CheckingInDetailEntity.fromJson(Map<String, dynamic> 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<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 Data {
|
|
|
|
Data({this.noPunchTimes, this.lateTimes, this.earlyTimes, this.monthList});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
noPunchTimes = json['noPunchTimes'];
|
|
lateTimes = json['lateTimes'];
|
|
earlyTimes = json['earlyTimes'];
|
|
if (json['monthList'] != null) {
|
|
monthList = <MonthList>[];
|
|
json['monthList'].forEach((v) {
|
|
monthList!.add(MonthList.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
int? noPunchTimes;
|
|
int? lateTimes;
|
|
int? earlyTimes;
|
|
List<MonthList>? monthList;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['noPunchTimes'] = noPunchTimes;
|
|
data['lateTimes'] = lateTimes;
|
|
data['earlyTimes'] = earlyTimes;
|
|
if (monthList != null) {
|
|
data['monthList'] = monthList!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class MonthList {
|
|
|
|
MonthList({this.openingTimeStart, this.openingTimeEnd, this.colorType});
|
|
|
|
MonthList.fromJson(Map<String, dynamic> json) {
|
|
openingTimeStart = json['openingTimeStart'];
|
|
openingTimeEnd = json['openingTimeEnd'];
|
|
colorType = json['colorType'];
|
|
}
|
|
int? openingTimeStart;
|
|
int? openingTimeEnd;
|
|
int? colorType;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['openingTimeStart'] = openingTimeStart;
|
|
data['openingTimeEnd'] = openingTimeEnd;
|
|
data['colorType'] = colorType;
|
|
return data;
|
|
}
|
|
}
|