class UserSettingInfoEntity { int? errorCode; String? description; String? errorMsg; UserSettingInfoData? data; UserSettingInfoEntity( {this.errorCode, this.description, this.errorMsg, this.data}); UserSettingInfoEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? UserSettingInfoData.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 UserSettingInfoData { UserSettings? userSettings; int? hasXmeyeLock; int? hasMoreService; int? isReply; int? paidUserStatus; int? hasAdvert; int? hasAlexa; int? isUserSettingCompleted; int? hasPaidFeature; int? hasCameraLock; int? hasGoogleHome; int? alertMode; int? mpWechatPushSwitch; int? isAmazonAlexa; int? isGoogleHome; UserSettingInfoData( {this.userSettings, this.hasXmeyeLock, this.hasMoreService, this.isReply, this.paidUserStatus, this.hasAdvert, this.hasAlexa, this.isUserSettingCompleted, this.hasPaidFeature, this.hasCameraLock, this.hasGoogleHome, this.alertMode, this.mpWechatPushSwitch, this.isAmazonAlexa, this.isGoogleHome}); UserSettingInfoData.fromJson(Map json) { userSettings = json['userSettings'] != null ? UserSettings.fromJson(json['userSettings']) : null; hasXmeyeLock = json['hasXmeyeLock']; hasMoreService = json['hasMoreService']; isReply = json['isReply']; paidUserStatus = json['paidUserStatus']; hasAdvert = json['hasAdvert']; hasAlexa = json['hasAlexa']; isUserSettingCompleted = json['isUserSettingCompleted']; hasPaidFeature = json['hasPaidFeature']; hasCameraLock = json['hasCameraLock']; hasGoogleHome = json['hasGoogleHome']; alertMode = json['alertMode']; mpWechatPushSwitch = json['mpWechatPushSwitch']; isAmazonAlexa = json['is_amazon_alexa']; isGoogleHome = json['is_google_home']; } Map toJson() { final Map data = {}; if (userSettings != null) { data['userSettings'] = userSettings!.toJson(); } data['hasXmeyeLock'] = hasXmeyeLock; data['hasMoreService'] = hasMoreService; data['isReply'] = isReply; data['paidUserStatus'] = paidUserStatus; data['hasAdvert'] = hasAdvert; data['hasAlexa'] = hasAlexa; data['isUserSettingCompleted'] = isUserSettingCompleted; data['hasPaidFeature'] = hasPaidFeature; data['hasCameraLock'] = hasCameraLock; data['hasGoogleHome'] = hasGoogleHome; data['alertMode'] = alertMode; data['mpWechatPushSwitch'] = mpWechatPushSwitch; data['is_amazon_alexa'] = isAmazonAlexa; data['is_google_home'] = isGoogleHome; return data; } } class UserSettings { int? touchUnlockFlag; int? modifyManagePwdFlag; String? gesturePassword; int? resetFlag; int? delManagerFlag; int? hideExpiredAccessFlag; int? sendKeyFlag; int? viberateFlag; int? lockScreen; int? authorizeFlag; int? sendPwdFlag; int? alertToneFlag; int? status; UserSettings( {this.touchUnlockFlag, this.modifyManagePwdFlag, this.gesturePassword, this.resetFlag, this.delManagerFlag, this.hideExpiredAccessFlag, this.sendKeyFlag, this.viberateFlag, this.lockScreen, this.authorizeFlag, this.sendPwdFlag, this.alertToneFlag, this.status}); UserSettings.fromJson(Map json) { touchUnlockFlag = json['touchUnlockFlag']; modifyManagePwdFlag = json['modifyManagePwdFlag']; gesturePassword = json['gesturePassword']; resetFlag = json['resetFlag']; delManagerFlag = json['delManagerFlag']; hideExpiredAccessFlag = json['hideExpiredAccessFlag']; sendKeyFlag = json['sendKeyFlag']; viberateFlag = json['viberateFlag']; lockScreen = json['lockScreen']; authorizeFlag = json['authorizeFlag']; sendPwdFlag = json['sendPwdFlag']; alertToneFlag = json['alertToneFlag']; status = json['status']; } Map toJson() { final Map data = {}; data['touchUnlockFlag'] = touchUnlockFlag; data['modifyManagePwdFlag'] = modifyManagePwdFlag; data['gesturePassword'] = gesturePassword; data['resetFlag'] = resetFlag; data['delManagerFlag'] = delManagerFlag; data['hideExpiredAccessFlag'] = hideExpiredAccessFlag; data['sendKeyFlag'] = sendKeyFlag; data['viberateFlag'] = viberateFlag; data['lockScreen'] = lockScreen; data['authorizeFlag'] = authorizeFlag; data['sendPwdFlag'] = sendPwdFlag; data['alertToneFlag'] = alertToneFlag; data['status'] = status; return data; } }