字段类型修改
This commit is contained in:
parent
7837d3e209
commit
015a19a944
@ -4,16 +4,13 @@ class LockMainEntity {
|
|||||||
String? errorMsg;
|
String? errorMsg;
|
||||||
LockInfoEntity? data;
|
LockInfoEntity? data;
|
||||||
|
|
||||||
LockMainEntity(
|
LockMainEntity({this.errorCode, this.description, this.errorMsg, this.data});
|
||||||
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
||||||
|
|
||||||
LockMainEntity.fromJson(Map<String, dynamic> json) {
|
LockMainEntity.fromJson(Map<String, dynamic> json) {
|
||||||
errorCode = json['errorCode'];
|
errorCode = json['errorCode'];
|
||||||
description = json['description'];
|
description = json['description'];
|
||||||
errorMsg = json['errorMsg'];
|
errorMsg = json['errorMsg'];
|
||||||
data = json['data'] != null
|
data = json['data'] != null ? LockInfoEntity.fromJson(json['data']) : null;
|
||||||
? LockInfoEntity.fromJson(json['data'])
|
|
||||||
: null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@ -30,39 +27,39 @@ class LockMainEntity {
|
|||||||
|
|
||||||
class LockInfoEntity {
|
class LockInfoEntity {
|
||||||
UserSettings? userSettings;
|
UserSettings? userSettings;
|
||||||
bool? hasXmeyeLock;
|
int? hasXmeyeLock;
|
||||||
bool? hasMoreService;
|
int? hasMoreService;
|
||||||
int? pages;
|
int? pages;
|
||||||
List<KeyGroups>? keyGroups;
|
List<KeyGroups>? keyGroups;
|
||||||
bool? isReply;
|
int? isReply;
|
||||||
int? paidUserStatus;
|
int? paidUserStatus;
|
||||||
bool? hasAdvert;
|
int? hasAdvert;
|
||||||
bool? hasAlexa;
|
int? hasAlexa;
|
||||||
bool? isUserSettingCompleted;
|
int? isUserSettingCompleted;
|
||||||
List<KeyInfos>? keyInfos;
|
List<KeyInfos>? keyInfos;
|
||||||
bool? hasPaidFeature;
|
int? hasPaidFeature;
|
||||||
bool? hasCameraLock;
|
int? hasCameraLock;
|
||||||
bool? hasGoogleHome;
|
int? hasGoogleHome;
|
||||||
int? pageNo;
|
int? pageNo;
|
||||||
int? lastUpdateDate;
|
int? lastUpdateDate;
|
||||||
|
|
||||||
LockInfoEntity(
|
LockInfoEntity(
|
||||||
{this.userSettings,
|
{this.userSettings,
|
||||||
this.hasXmeyeLock,
|
this.hasXmeyeLock,
|
||||||
this.hasMoreService,
|
this.hasMoreService,
|
||||||
this.pages,
|
this.pages,
|
||||||
this.keyGroups,
|
this.keyGroups,
|
||||||
this.isReply,
|
this.isReply,
|
||||||
this.paidUserStatus,
|
this.paidUserStatus,
|
||||||
this.hasAdvert,
|
this.hasAdvert,
|
||||||
this.hasAlexa,
|
this.hasAlexa,
|
||||||
this.isUserSettingCompleted,
|
this.isUserSettingCompleted,
|
||||||
this.keyInfos,
|
this.keyInfos,
|
||||||
this.hasPaidFeature,
|
this.hasPaidFeature,
|
||||||
this.hasCameraLock,
|
this.hasCameraLock,
|
||||||
this.hasGoogleHome,
|
this.hasGoogleHome,
|
||||||
this.pageNo,
|
this.pageNo,
|
||||||
this.lastUpdateDate});
|
this.lastUpdateDate});
|
||||||
|
|
||||||
LockInfoEntity.fromJson(Map<String, dynamic> json) {
|
LockInfoEntity.fromJson(Map<String, dynamic> json) {
|
||||||
userSettings = json['userSettings'] != null
|
userSettings = json['userSettings'] != null
|
||||||
@ -140,18 +137,18 @@ class UserSettings {
|
|||||||
|
|
||||||
UserSettings(
|
UserSettings(
|
||||||
{this.touchUnlockFlag,
|
{this.touchUnlockFlag,
|
||||||
this.modifyManagePwdFlag,
|
this.modifyManagePwdFlag,
|
||||||
this.gesturePassword,
|
this.gesturePassword,
|
||||||
this.resetFlag,
|
this.resetFlag,
|
||||||
this.delManagerFlag,
|
this.delManagerFlag,
|
||||||
this.hideExpiredAccessFlag,
|
this.hideExpiredAccessFlag,
|
||||||
this.sendKeyFlag,
|
this.sendKeyFlag,
|
||||||
this.viberateFlag,
|
this.viberateFlag,
|
||||||
this.lockScreen,
|
this.lockScreen,
|
||||||
this.authorizeFlag,
|
this.authorizeFlag,
|
||||||
this.sendPwdFlag,
|
this.sendPwdFlag,
|
||||||
this.alertToneFlag,
|
this.alertToneFlag,
|
||||||
this.status});
|
this.status});
|
||||||
|
|
||||||
UserSettings.fromJson(Map<String, dynamic> json) {
|
UserSettings.fromJson(Map<String, dynamic> json) {
|
||||||
touchUnlockFlag = json['touchUnlockFlag'];
|
touchUnlockFlag = json['touchUnlockFlag'];
|
||||||
@ -264,58 +261,58 @@ class KeyInfos {
|
|||||||
int? roomStatus;
|
int? roomStatus;
|
||||||
KeyInfos(
|
KeyInfos(
|
||||||
{this.lightingTime,
|
{this.lightingTime,
|
||||||
this.privacyLock,
|
this.privacyLock,
|
||||||
this.keyGroupId,
|
this.keyGroupId,
|
||||||
this.remarks,
|
this.remarks,
|
||||||
this.autoUnlock,
|
this.autoUnlock,
|
||||||
this.noKeyPwd,
|
this.noKeyPwd,
|
||||||
this.isAttendance,
|
this.isAttendance,
|
||||||
this.keyStatus,
|
this.keyStatus,
|
||||||
this.faceAuthentication,
|
this.faceAuthentication,
|
||||||
this.sensitivity,
|
this.sensitivity,
|
||||||
this.date,
|
this.date,
|
||||||
this.appUnlockMustOnline,
|
this.appUnlockMustOnline,
|
||||||
this.lockKey,
|
this.lockKey,
|
||||||
this.resetButton,
|
this.resetButton,
|
||||||
this.endDate,
|
this.endDate,
|
||||||
this.keyRight,
|
this.keyRight,
|
||||||
this.electricQuantity,
|
this.electricQuantity,
|
||||||
this.lockSound,
|
this.lockSound,
|
||||||
this.volume,
|
this.volume,
|
||||||
this.specialValue,
|
this.specialValue,
|
||||||
this.displayPasscode,
|
this.displayPasscode,
|
||||||
this.lockId,
|
this.lockId,
|
||||||
this.doubleVerification,
|
this.doubleVerification,
|
||||||
this.keyName,
|
this.keyName,
|
||||||
this.lockVersion,
|
this.lockVersion,
|
||||||
this.lockName,
|
this.lockName,
|
||||||
this.monitorFlag,
|
this.monitorFlag,
|
||||||
this.bondPassword,
|
this.bondPassword,
|
||||||
this.lockAlias,
|
this.lockAlias,
|
||||||
this.isFrozen,
|
this.isFrozen,
|
||||||
this.remoteEnable,
|
this.remoteEnable,
|
||||||
this.lockFlagPos,
|
this.lockFlagPos,
|
||||||
this.autoLockTime,
|
this.autoLockTime,
|
||||||
this.unlockDirection,
|
this.unlockDirection,
|
||||||
this.isCameraEnable,
|
this.isCameraEnable,
|
||||||
this.startDate,
|
this.startDate,
|
||||||
this.keyGroupName,
|
this.keyGroupName,
|
||||||
this.aesKeyStr,
|
this.aesKeyStr,
|
||||||
this.uid,
|
this.uid,
|
||||||
this.passageMode,
|
this.passageMode,
|
||||||
this.admin,
|
this.admin,
|
||||||
this.keyId,
|
this.keyId,
|
||||||
this.adminPwd,
|
this.adminPwd,
|
||||||
this.deletePwd,
|
this.deletePwd,
|
||||||
this.timezoneRawOffSet,
|
this.timezoneRawOffSet,
|
||||||
this.userType,
|
this.userType,
|
||||||
this.validPwdNum,
|
this.validPwdNum,
|
||||||
this.featureValue,
|
this.featureValue,
|
||||||
this.adminUid,
|
this.adminUid,
|
||||||
this.lockMac,
|
this.lockMac,
|
||||||
this.wirelessKeypadFeatureValue,
|
this.wirelessKeypadFeatureValue,
|
||||||
this.tamperAlert,
|
this.tamperAlert,
|
||||||
this.roomStatus,
|
this.roomStatus,
|
||||||
this.bluetooth});
|
this.bluetooth});
|
||||||
|
|
||||||
KeyInfos.fromJson(Map<String, dynamic> json) {
|
KeyInfos.fromJson(Map<String, dynamic> json) {
|
||||||
@ -454,12 +451,12 @@ class LockVersion {
|
|||||||
|
|
||||||
LockVersion(
|
LockVersion(
|
||||||
{this.scene,
|
{this.scene,
|
||||||
this.protocolVersion,
|
this.protocolVersion,
|
||||||
this.logoUrl,
|
this.logoUrl,
|
||||||
this.orgId,
|
this.orgId,
|
||||||
this.showAdminKbpwdFlag,
|
this.showAdminKbpwdFlag,
|
||||||
this.protocolType,
|
this.protocolType,
|
||||||
this.groupId});
|
this.groupId});
|
||||||
|
|
||||||
LockVersion.fromJson(Map<String, dynamic> json) {
|
LockVersion.fromJson(Map<String, dynamic> json) {
|
||||||
scene = json['scene'];
|
scene = json['scene'];
|
||||||
@ -493,9 +490,9 @@ class Bluetooth {
|
|||||||
|
|
||||||
Bluetooth(
|
Bluetooth(
|
||||||
{this.bluetoothDeviceId,
|
{this.bluetoothDeviceId,
|
||||||
this.bluetoothDeviceName,
|
this.bluetoothDeviceName,
|
||||||
this.publicKey,
|
this.publicKey,
|
||||||
this.privateKey,
|
this.privateKey,
|
||||||
this.signKey});
|
this.signKey});
|
||||||
|
|
||||||
Bluetooth.fromJson(Map<String, dynamic> json) {
|
Bluetooth.fromJson(Map<String, dynamic> json) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user