class DoorLockLogEntity { DoorLockLogEntity( {this.errorCode, this.description, this.errorMsg, this.data}); DoorLockLogEntity.fromJson(Map 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 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 Data { Data({this.itemList, this.pageNo, this.pageSize, this.pages, this.total}); Data.fromJson(Map json) { if (json['list'] != null) { itemList = []; json['list'].forEach((v) { itemList!.add(DoorLockLogDataItem.fromJson(v)); }); } pageNo = json['pageNo']; pageSize = json['pageSize']; pages = json['pages']; total = json['total']; } List? itemList; int? pageNo; int? pageSize; int? pages; int? total; Map toJson() { final Map data = {}; if (itemList != null) { data['list'] = itemList!.map((v) => v.toJson()).toList(); } data['pageNo'] = pageNo; data['pageSize'] = pageSize; data['pages'] = pages; data['total'] = total; return data; } } class DoorLockLogDataItem { DoorLockLogDataItem( {this.recordId, this.lockId, this.lockAlias, this.recordType, this.recordTypeName, this.username, this.operateDate, this.imagesUrl, this.videoUrl, this.headUrl, this.userid, this.keyboardPwd, this.recordStr, this.recordDetailStr}); DoorLockLogDataItem.fromJson(Map json) { recordId = json['recordId']; lockId = json['lockId']; lockAlias = json['lockAlias']; recordType = json['recordType']; recordTypeName = json['recordTypeName']; username = json['username']; operateDate = json['operateDate']; imagesUrl = json['imagesUrl']; videoUrl = json['videoUrl']; headUrl = json['headUrl']; userid = json['userid']; keyboardPwd = json['keyboardPwd']; recordStr = json['recordStr']; recordDetailStr = json['recordDetailStr']; } int? recordId; int? lockId; String? lockAlias; int? recordType; String? recordTypeName; String? username; int? operateDate; String? imagesUrl; String? videoUrl; String? headUrl; String? userid; String? keyboardPwd; String? recordStr; String? recordDetailStr; Map toJson() { final Map data = {}; data['recordId'] = recordId; data['lockId'] = lockId; data['lockAlias'] = lockAlias; data['recordType'] = recordType; data['recordTypeName'] = recordTypeName; data['username'] = username; data['operateDate'] = operateDate; data['imagesUrl'] = imagesUrl; data['videoUrl'] = videoUrl; data['headUrl'] = headUrl; data['userid'] = userid; data['keyboardPwd'] = keyboardPwd; data['recordStr'] = recordStr; data['recordDetailStr'] = recordDetailStr; return data; } @override String toString() { return 'DoorLockLogDataItem{recordId: $recordId, lockId: $lockId, lockAlias: $lockAlias, recordType: $recordType, recordTypeName: $recordTypeName, username: $username, operateDate: $operateDate, imagesUrl: $imagesUrl, videoUrl: $videoUrl, headUrl: $headUrl, userid: $userid, keyboardPwd: $keyboardPwd, recordStr: $recordStr, recordDetailStr: $recordDetailStr}'; } }