字段类型修改

This commit is contained in:
Daisy 2023-09-20 14:19:22 +08:00
parent 7837d3e209
commit 015a19a944

View File

@ -4,16 +4,13 @@ class LockMainEntity {
String? errorMsg;
LockInfoEntity? data;
LockMainEntity(
{this.errorCode, this.description, this.errorMsg, this.data});
LockMainEntity({this.errorCode, this.description, this.errorMsg, this.data});
LockMainEntity.fromJson(Map<String, dynamic> json) {
errorCode = json['errorCode'];
description = json['description'];
errorMsg = json['errorMsg'];
data = json['data'] != null
? LockInfoEntity.fromJson(json['data'])
: null;
data = json['data'] != null ? LockInfoEntity.fromJson(json['data']) : null;
}
Map<String, dynamic> toJson() {
@ -30,19 +27,19 @@ class LockMainEntity {
class LockInfoEntity {
UserSettings? userSettings;
bool? hasXmeyeLock;
bool? hasMoreService;
int? hasXmeyeLock;
int? hasMoreService;
int? pages;
List<KeyGroups>? keyGroups;
bool? isReply;
int? isReply;
int? paidUserStatus;
bool? hasAdvert;
bool? hasAlexa;
bool? isUserSettingCompleted;
int? hasAdvert;
int? hasAlexa;
int? isUserSettingCompleted;
List<KeyInfos>? keyInfos;
bool? hasPaidFeature;
bool? hasCameraLock;
bool? hasGoogleHome;
int? hasPaidFeature;
int? hasCameraLock;
int? hasGoogleHome;
int? pageNo;
int? lastUpdateDate;