class TransferSmartLockEntity { int? errorCode; String? description; String? errorMsg; TransferSmartLockListData? data; TransferSmartLockEntity( {this.errorCode, this.description, this.errorMsg, this.data}); TransferSmartLockEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? TransferSmartLockListData.fromJson(json['data']) : null; } 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 TransferSmartLockListData { List? list; TransferSmartLockListData({this.list}); TransferSmartLockListData.fromJson(Map json) { if (json['list'] != null) { list = []; json['list'].forEach((v) { list!.add(TransferSmartLockItemData.fromJson(v)); }); } } Map toJson() { final Map data = {}; if (list != null) { data['list'] = list!.map((v) => v.toJson()).toList(); } return data; } } class TransferSmartLockItemData { int? lockId; int? select = 0; String? lockAlias; LockVersion? lockVersion; TransferSmartLockItemData({this.lockId, this.lockAlias, this.lockVersion}); TransferSmartLockItemData.fromJson(Map json) { lockId = json['lockId']; lockAlias = json['lockAlias']; // lockVersion = json['lockVersion'] != null // ? LockVersion.fromJson(json['lockVersion']) // : null; } Map toJson() { final Map data = {}; data['lockId'] = lockId; data['lockAlias'] = lockAlias; // if (lockVersion != null) { // data['lockVersion'] = lockVersion!.toJson(); // } return data; } } class LockVersion { bool? showAdminKbpwdFlag; int? groupId; int? protocolVersion; int? protocolType; int? orgId; String? logoUrl; int? scene; LockVersion( {this.showAdminKbpwdFlag, this.groupId, this.protocolVersion, this.protocolType, this.orgId, this.logoUrl, this.scene}); LockVersion.fromJson(Map json) { showAdminKbpwdFlag = json['showAdminKbpwdFlag']; groupId = json['groupId']; protocolVersion = json['protocolVersion']; protocolType = json['protocolType']; orgId = json['orgId']; logoUrl = json['logoUrl']; scene = json['scene']; } Map toJson() { final Map data = {}; data['showAdminKbpwdFlag'] = showAdminKbpwdFlag; data['groupId'] = groupId; data['protocolVersion'] = protocolVersion; data['protocolType'] = protocolType; data['orgId'] = orgId; data['logoUrl'] = logoUrl; data['scene'] = scene; return data; } }