rename autoLogin to trustThisDevice

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-06-20 07:43:13 +08:00
parent 22b0b54527
commit 148534540b
5 changed files with 16 additions and 12 deletions

View File

@@ -67,7 +67,7 @@ class LoginRequest {
String? password;
String? id;
String? uuid;
bool? autoLogin;
bool? trustThisDevice;
String? type;
String? verificationCode;
Map<String, dynamic> deviceInfo = DeviceInfo.toJson();
@@ -77,7 +77,7 @@ class LoginRequest {
this.password,
this.id,
this.uuid,
this.autoLogin,
this.trustThisDevice,
this.type,
this.verificationCode});
@@ -87,7 +87,7 @@ class LoginRequest {
data['password'] = password ?? '';
data['id'] = id ?? '';
data['uuid'] = uuid ?? '';
data['autoLogin'] = autoLogin ?? '';
data['trustThisDevice'] = trustThisDevice ?? '';
data['type'] = type ?? '';
data['verificationCode'] = verificationCode ?? '';
data['deviceInfo'] = deviceInfo;