2023-11-01 17:28:59 +08:00
|
|
|
|
class LockListInfoEntity {
|
|
|
|
|
|
LockListInfoEntity(
|
|
|
|
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
|
|
|
|
|
|
|
|
LockListInfoEntity.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
errorCode = json['errorCode'];
|
|
|
|
|
|
description = json['description'];
|
|
|
|
|
|
errorMsg = json['errorMsg'];
|
2024-04-15 14:53:14 +08:00
|
|
|
|
data = json['data'] != null
|
|
|
|
|
|
? LockListInfoGroupEntity.fromJson(json['data'])
|
|
|
|
|
|
: null;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
int? errorCode;
|
|
|
|
|
|
String? description;
|
|
|
|
|
|
String? errorMsg;
|
|
|
|
|
|
LockListInfoGroupEntity? data;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
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 LockListInfoGroupEntity {
|
2024-04-15 14:53:14 +08:00
|
|
|
|
LockListInfoGroupEntity(
|
|
|
|
|
|
{this.groupList, this.pageNo, this.pageSize, this.pages, this.total});
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
LockListInfoGroupEntity.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
if (json['groupList'] != null) {
|
|
|
|
|
|
groupList = <GroupList>[];
|
|
|
|
|
|
json['groupList'].forEach((v) {
|
|
|
|
|
|
groupList!.add(GroupList.fromJson(v));
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
pageNo = json['pageNo'];
|
|
|
|
|
|
pageSize = json['pageSize'];
|
|
|
|
|
|
pages = json['pages'];
|
|
|
|
|
|
total = json['total'];
|
|
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
List<GroupList>? groupList;
|
|
|
|
|
|
int? pageNo;
|
|
|
|
|
|
int? pageSize;
|
|
|
|
|
|
int? pages;
|
|
|
|
|
|
int? total;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
if (groupList != null) {
|
|
|
|
|
|
data['groupList'] = groupList!.map((v) => v.toJson()).toList();
|
|
|
|
|
|
}
|
|
|
|
|
|
data['pageNo'] = pageNo;
|
|
|
|
|
|
data['pageSize'] = pageSize;
|
|
|
|
|
|
data['pages'] = pages;
|
|
|
|
|
|
data['total'] = total;
|
|
|
|
|
|
return data;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class GroupList {
|
|
|
|
|
|
GroupList({this.groupName, this.groupId, this.lockList});
|
|
|
|
|
|
|
|
|
|
|
|
GroupList.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
groupName = json['groupName'];
|
|
|
|
|
|
groupId = json['groupId'];
|
|
|
|
|
|
if (json['lockList'] != null) {
|
|
|
|
|
|
lockList = <LockListInfoItemEntity>[];
|
|
|
|
|
|
json['lockList'].forEach((v) {
|
|
|
|
|
|
lockList!.add(LockListInfoItemEntity.fromJson(v));
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
String? groupName;
|
|
|
|
|
|
int? groupId;
|
|
|
|
|
|
List<LockListInfoItemEntity>? lockList;
|
|
|
|
|
|
|
|
|
|
|
|
bool _isChecked = false;
|
|
|
|
|
|
|
|
|
|
|
|
bool get isChecked => _isChecked ?? false;
|
|
|
|
|
|
|
|
|
|
|
|
set isChecked(bool value) => _isChecked = value;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
data['groupName'] = groupName;
|
|
|
|
|
|
data['groupId'] = groupId;
|
|
|
|
|
|
if (lockList != null) {
|
|
|
|
|
|
data['lockList'] = lockList!.map((v) => v.toJson()).toList();
|
|
|
|
|
|
}
|
|
|
|
|
|
return data;
|
|
|
|
|
|
}
|
2024-06-03 17:26:32 +08:00
|
|
|
|
|
2024-11-25 11:07:29 +08:00
|
|
|
|
GroupList copy() {
|
2024-06-03 17:26:32 +08:00
|
|
|
|
return GroupList(
|
|
|
|
|
|
groupName: groupName,
|
|
|
|
|
|
groupId: groupId,
|
|
|
|
|
|
lockList: lockList?.map((e) => e.copy()).toList(),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class LockListInfoItemEntity {
|
2024-05-27 17:38:23 +08:00
|
|
|
|
LockListInfoItemEntity({
|
|
|
|
|
|
this.keyId,
|
|
|
|
|
|
this.lockId,
|
|
|
|
|
|
this.lockName,
|
|
|
|
|
|
this.lockAlias,
|
|
|
|
|
|
this.electricQuantity,
|
|
|
|
|
|
this.fwVersion,
|
|
|
|
|
|
this.hwVersion,
|
|
|
|
|
|
this.keyType,
|
|
|
|
|
|
this.passageMode,
|
|
|
|
|
|
this.userType,
|
|
|
|
|
|
this.startDate,
|
|
|
|
|
|
this.endDate,
|
|
|
|
|
|
this.weekDays,
|
|
|
|
|
|
this.remoteEnable,
|
|
|
|
|
|
this.faceAuthentication,
|
|
|
|
|
|
this.lastFaceValidateTime,
|
|
|
|
|
|
this.nextFaceValidateTime,
|
|
|
|
|
|
this.keyRight,
|
|
|
|
|
|
this.keyStatus,
|
|
|
|
|
|
this.isLockOwner,
|
|
|
|
|
|
this.bluetooth,
|
|
|
|
|
|
this.lockFeature,
|
|
|
|
|
|
this.lockSetting,
|
|
|
|
|
|
this.sendDate,
|
|
|
|
|
|
this.lockUserNo,
|
|
|
|
|
|
this.electricQuantityDate,
|
|
|
|
|
|
this.electricQuantityStandby,
|
|
|
|
|
|
this.senderUserId,
|
|
|
|
|
|
this.isOnlyManageSelf,
|
|
|
|
|
|
this.restoreCount,
|
|
|
|
|
|
this.model,
|
|
|
|
|
|
this.vendor,
|
|
|
|
|
|
this.hasGateway,
|
2024-05-31 15:10:57 +08:00
|
|
|
|
this.appUnlockOnline,
|
2024-05-27 17:38:23 +08:00
|
|
|
|
this.mac,
|
2024-06-14 15:46:43 +08:00
|
|
|
|
this.initUserNo,
|
2024-06-15 13:35:23 +08:00
|
|
|
|
this.updateDate,
|
2024-05-27 17:38:23 +08:00
|
|
|
|
});
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
LockListInfoItemEntity.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
keyId = json['keyId'];
|
|
|
|
|
|
lockId = json['lockId'];
|
|
|
|
|
|
lockName = json['lockName'];
|
|
|
|
|
|
lockAlias = json['lockAlias'];
|
|
|
|
|
|
electricQuantity = json['electricQuantity'];
|
|
|
|
|
|
fwVersion = json['fwVersion'];
|
|
|
|
|
|
hwVersion = json['hwVersion'];
|
|
|
|
|
|
keyType = json['keyType'];
|
|
|
|
|
|
passageMode = json['passageMode'];
|
|
|
|
|
|
userType = json['userType'];
|
|
|
|
|
|
startDate = json['startDate'];
|
|
|
|
|
|
endDate = json['endDate'];
|
|
|
|
|
|
weekDays = json['weekDays'];
|
|
|
|
|
|
remoteEnable = json['remoteEnable'];
|
|
|
|
|
|
faceAuthentication = json['faceAuthentication'];
|
|
|
|
|
|
lastFaceValidateTime = json['lastFaceValidateTime'];
|
2024-05-07 18:07:57 +08:00
|
|
|
|
nextFaceValidateTime = json['nextFaceValidateTime'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
keyRight = json['keyRight'];
|
|
|
|
|
|
keyStatus = json['keyStatus'];
|
|
|
|
|
|
isLockOwner = json['isLockOwner'];
|
2023-11-03 13:58:41 +08:00
|
|
|
|
sendDate = json['sendDate'];
|
2023-12-16 11:20:36 +08:00
|
|
|
|
lockUserNo = json['lockUserNo'];
|
|
|
|
|
|
senderUserId = json['senderUserId'];
|
2024-03-06 17:54:18 +08:00
|
|
|
|
electricQuantityDate = json['electricQuantityDate'];
|
|
|
|
|
|
electricQuantityStandby = json['electricQuantityStandby'];
|
2024-04-24 13:39:47 +08:00
|
|
|
|
isOnlyManageSelf = json['isOnlyManageSelf'];
|
|
|
|
|
|
restoreCount = json['restoreCount'];
|
|
|
|
|
|
model = json['model'];
|
|
|
|
|
|
vendor = json['vendor'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
bluetooth = json['bluetooth'] != null
|
|
|
|
|
|
? Bluetooth.fromJson(json['bluetooth'])
|
|
|
|
|
|
: null;
|
|
|
|
|
|
lockFeature = json['lockFeature'] != null
|
|
|
|
|
|
? LockFeature.fromJson(json['lockFeature'])
|
|
|
|
|
|
: null;
|
|
|
|
|
|
lockSetting = json['lockSetting'] != null
|
|
|
|
|
|
? LockSetting.fromJson(json['lockSetting'])
|
|
|
|
|
|
: null;
|
2024-05-13 17:43:44 +08:00
|
|
|
|
hasGateway = json['hasGateway'];
|
2024-05-31 15:10:57 +08:00
|
|
|
|
appUnlockOnline = json['appUnlockOnline'];
|
2024-05-27 17:38:23 +08:00
|
|
|
|
mac = json['mac'];
|
2024-06-14 15:46:43 +08:00
|
|
|
|
initUserNo = json['initUserNo'];
|
2024-06-15 13:35:23 +08:00
|
|
|
|
updateDate = json['updateDate'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
int? keyId;
|
|
|
|
|
|
int? lockId;
|
|
|
|
|
|
String? lockName;
|
|
|
|
|
|
String? lockAlias;
|
|
|
|
|
|
int? electricQuantity;
|
|
|
|
|
|
String? fwVersion;
|
|
|
|
|
|
String? hwVersion;
|
|
|
|
|
|
int? keyType;
|
|
|
|
|
|
int? passageMode;
|
|
|
|
|
|
int? userType;
|
|
|
|
|
|
int? startDate;
|
|
|
|
|
|
int? endDate;
|
|
|
|
|
|
List? weekDays;
|
|
|
|
|
|
int? remoteEnable;
|
|
|
|
|
|
int? faceAuthentication; //是否实名认证:0-未知,1-是,2-否
|
|
|
|
|
|
int? lastFaceValidateTime;
|
|
|
|
|
|
int? nextFaceValidateTime; //下次人脸认证时间
|
|
|
|
|
|
int? keyRight;
|
|
|
|
|
|
int? keyStatus;
|
|
|
|
|
|
int? isLockOwner;
|
|
|
|
|
|
int? sendDate;
|
|
|
|
|
|
int? lockUserNo;
|
|
|
|
|
|
int? senderUserId;
|
|
|
|
|
|
int? electricQuantityDate;
|
|
|
|
|
|
int? electricQuantityStandby;
|
|
|
|
|
|
int? isOnlyManageSelf;
|
|
|
|
|
|
int? restoreCount;
|
|
|
|
|
|
String? model;
|
|
|
|
|
|
String? vendor;
|
|
|
|
|
|
Bluetooth? bluetooth;
|
|
|
|
|
|
LockFeature? lockFeature;
|
|
|
|
|
|
LockSetting? lockSetting;
|
|
|
|
|
|
int? hasGateway;
|
|
|
|
|
|
int? appUnlockOnline;
|
|
|
|
|
|
String? mac;
|
|
|
|
|
|
int? initUserNo;
|
|
|
|
|
|
int? updateDate;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
data['keyId'] = keyId;
|
|
|
|
|
|
data['lockId'] = lockId;
|
|
|
|
|
|
data['lockName'] = lockName;
|
|
|
|
|
|
data['lockAlias'] = lockAlias;
|
|
|
|
|
|
data['electricQuantity'] = electricQuantity;
|
|
|
|
|
|
data['fwVersion'] = fwVersion;
|
|
|
|
|
|
data['hwVersion'] = hwVersion;
|
|
|
|
|
|
data['keyType'] = keyType;
|
|
|
|
|
|
data['passageMode'] = passageMode;
|
|
|
|
|
|
data['userType'] = userType;
|
|
|
|
|
|
data['startDate'] = startDate;
|
|
|
|
|
|
data['endDate'] = endDate;
|
|
|
|
|
|
data['weekDays'] = weekDays;
|
|
|
|
|
|
data['remoteEnable'] = remoteEnable;
|
|
|
|
|
|
data['faceAuthentication'] = faceAuthentication;
|
|
|
|
|
|
data['lastFaceValidateTime'] = lastFaceValidateTime;
|
2024-05-07 18:07:57 +08:00
|
|
|
|
data['nextFaceValidateTime'] = nextFaceValidateTime;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
data['keyRight'] = keyRight;
|
|
|
|
|
|
data['keyStatus'] = keyStatus;
|
|
|
|
|
|
data['isLockOwner'] = isLockOwner;
|
2023-11-03 13:58:41 +08:00
|
|
|
|
data['sendDate'] = sendDate;
|
2023-12-16 11:20:36 +08:00
|
|
|
|
data['lockUserNo'] = lockUserNo;
|
|
|
|
|
|
data['senderUserId'] = senderUserId;
|
2024-03-06 17:54:18 +08:00
|
|
|
|
data['electricQuantityDate'] = electricQuantityDate;
|
|
|
|
|
|
data['electricQuantityStandby'] = electricQuantityStandby;
|
2024-04-24 13:39:47 +08:00
|
|
|
|
data['isOnlyManageSelf'] = isOnlyManageSelf;
|
|
|
|
|
|
data['restoreCount'] = restoreCount;
|
|
|
|
|
|
data['model'] = model;
|
|
|
|
|
|
data['vendor'] = vendor;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
if (bluetooth != null) {
|
|
|
|
|
|
data['bluetooth'] = bluetooth!.toJson();
|
|
|
|
|
|
}
|
|
|
|
|
|
if (lockFeature != null) {
|
|
|
|
|
|
data['lockFeature'] = lockFeature!.toJson();
|
|
|
|
|
|
}
|
|
|
|
|
|
if (lockSetting != null) {
|
|
|
|
|
|
data['lockSetting'] = lockSetting!.toJson();
|
|
|
|
|
|
}
|
2024-05-13 17:43:44 +08:00
|
|
|
|
data['hasGateway'] = hasGateway;
|
2024-05-31 15:10:57 +08:00
|
|
|
|
data['appUnlockOnline'] = appUnlockOnline;
|
2024-05-27 17:38:23 +08:00
|
|
|
|
data['mac'] = mac;
|
2024-06-14 15:46:43 +08:00
|
|
|
|
data['initUserNo'] = initUserNo;
|
2024-06-15 13:35:23 +08:00
|
|
|
|
data['updateDate'] = updateDate;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
return data;
|
|
|
|
|
|
}
|
2024-05-21 18:35:10 +08:00
|
|
|
|
|
|
|
|
|
|
//是否是锁拥有者 也代表是超级管理员
|
2024-05-27 17:38:23 +08:00
|
|
|
|
bool isLockOwnerBool() {
|
|
|
|
|
|
return isLockOwner == 1;
|
2024-05-21 18:35:10 +08:00
|
|
|
|
}
|
2024-06-03 17:26:32 +08:00
|
|
|
|
|
2024-11-25 11:07:29 +08:00
|
|
|
|
LockListInfoItemEntity copy() {
|
2024-06-03 17:26:32 +08:00
|
|
|
|
return LockListInfoItemEntity.fromJson(toJson());
|
|
|
|
|
|
}
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class Bluetooth {
|
|
|
|
|
|
Bluetooth(
|
|
|
|
|
|
{this.bluetoothDeviceId,
|
2024-04-15 14:53:14 +08:00
|
|
|
|
this.bluetoothDeviceName,
|
|
|
|
|
|
this.publicKey,
|
|
|
|
|
|
this.privateKey,
|
|
|
|
|
|
this.signKey});
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Bluetooth.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
bluetoothDeviceId = json['bluetoothDeviceId'];
|
|
|
|
|
|
bluetoothDeviceName = json['bluetoothDeviceName'];
|
|
|
|
|
|
publicKey = json['publicKey'].cast<int>();
|
|
|
|
|
|
privateKey = json['privateKey'].cast<int>();
|
|
|
|
|
|
signKey = json['signKey'].cast<int>();
|
|
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
String? bluetoothDeviceId;
|
|
|
|
|
|
String? bluetoothDeviceName;
|
|
|
|
|
|
List<int>? publicKey;
|
|
|
|
|
|
List<int>? privateKey;
|
|
|
|
|
|
List<int>? signKey;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
data['bluetoothDeviceId'] = bluetoothDeviceId;
|
|
|
|
|
|
data['bluetoothDeviceName'] = bluetoothDeviceName;
|
|
|
|
|
|
data['publicKey'] = publicKey;
|
|
|
|
|
|
data['privateKey'] = privateKey;
|
|
|
|
|
|
data['signKey'] = signKey;
|
|
|
|
|
|
return data;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class LockFeature {
|
2024-05-27 17:38:23 +08:00
|
|
|
|
LockFeature({
|
|
|
|
|
|
this.password,
|
|
|
|
|
|
this.icCard,
|
|
|
|
|
|
this.fingerprint,
|
|
|
|
|
|
this.fingerVein,
|
|
|
|
|
|
this.palmVein,
|
|
|
|
|
|
this.isSupportIris,
|
|
|
|
|
|
this.d3Face,
|
|
|
|
|
|
this.bluetoothRemoteControl,
|
|
|
|
|
|
this.videoIntercom,
|
|
|
|
|
|
this.isSupportCatEye,
|
|
|
|
|
|
this.isSupportBackupBattery,
|
2024-11-25 11:07:29 +08:00
|
|
|
|
this.isNoSupportedBlueBroadcast,
|
2024-05-27 17:38:23 +08:00
|
|
|
|
});
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
LockFeature.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
password = json['password'];
|
|
|
|
|
|
icCard = json['icCard'];
|
|
|
|
|
|
fingerprint = json['fingerprint'];
|
|
|
|
|
|
fingerVein = json['fingerVein'];
|
|
|
|
|
|
palmVein = json['palmVein'];
|
2024-04-15 14:53:14 +08:00
|
|
|
|
isSupportIris = json['isSupportIris'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
d3Face = json['d3Face'];
|
|
|
|
|
|
bluetoothRemoteControl = json['bluetoothRemoteControl'];
|
|
|
|
|
|
videoIntercom = json['videoIntercom'];
|
2024-04-30 14:46:06 +08:00
|
|
|
|
isSupportCatEye = json['isSupportCatEye'];
|
2024-04-30 16:16:06 +08:00
|
|
|
|
isSupportBackupBattery = json['isSupportBackupBattery'];
|
2024-11-25 11:07:29 +08:00
|
|
|
|
isNoSupportedBlueBroadcast = json['isNoSupportedBlueBroadcast'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
int? password;
|
|
|
|
|
|
int? icCard;
|
|
|
|
|
|
int? fingerprint;
|
|
|
|
|
|
int? fingerVein;
|
|
|
|
|
|
int? palmVein;
|
|
|
|
|
|
int? isSupportIris;
|
|
|
|
|
|
int? d3Face;
|
|
|
|
|
|
int? bluetoothRemoteControl;
|
|
|
|
|
|
int? videoIntercom;
|
|
|
|
|
|
int? isSupportCatEye;
|
|
|
|
|
|
int? isSupportBackupBattery;
|
2024-11-25 11:07:29 +08:00
|
|
|
|
int? isNoSupportedBlueBroadcast;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
data['password'] = password;
|
|
|
|
|
|
data['icCard'] = icCard;
|
|
|
|
|
|
data['fingerprint'] = fingerprint;
|
|
|
|
|
|
data['fingerVein'] = fingerVein;
|
|
|
|
|
|
data['palmVein'] = palmVein;
|
2024-04-15 14:53:14 +08:00
|
|
|
|
data['isSupportIris'] = isSupportIris;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
data['d3Face'] = d3Face;
|
|
|
|
|
|
data['bluetoothRemoteControl'] = bluetoothRemoteControl;
|
|
|
|
|
|
data['videoIntercom'] = videoIntercom;
|
2024-04-30 14:46:06 +08:00
|
|
|
|
data['isSupportCatEye'] = isSupportCatEye;
|
2024-04-30 16:16:06 +08:00
|
|
|
|
data['isSupportBackupBattery'] = isSupportBackupBattery;
|
2024-11-25 11:07:29 +08:00
|
|
|
|
data['isNoSupportedBlueBroadcast'] = isNoSupportedBlueBroadcast;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
return data;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class LockSetting {
|
2024-01-23 18:37:03 +08:00
|
|
|
|
LockSetting({
|
|
|
|
|
|
this.attendance,
|
|
|
|
|
|
this.appUnlockOnline,
|
|
|
|
|
|
this.remoteUnlock,
|
|
|
|
|
|
});
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
LockSetting.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
attendance = json['attendance'];
|
|
|
|
|
|
appUnlockOnline = json['appUnlockOnline'];
|
2024-01-23 18:37:03 +08:00
|
|
|
|
remoteUnlock = json['remoteUnlock'];
|
2023-11-01 17:28:59 +08:00
|
|
|
|
}
|
2024-08-21 18:31:19 +08:00
|
|
|
|
int? attendance;
|
|
|
|
|
|
int? appUnlockOnline;
|
|
|
|
|
|
int? remoteUnlock;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
data['attendance'] = attendance;
|
|
|
|
|
|
data['appUnlockOnline'] = appUnlockOnline;
|
2024-01-23 18:37:03 +08:00
|
|
|
|
data['remoteUnlock'] = remoteUnlock;
|
2023-11-01 17:28:59 +08:00
|
|
|
|
return data;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|