|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
UserAutoLoginModel userAutoLoginModelFromJson(String str) => UserAutoLoginModel.fromJson(json.decode(str));
|
|
|
|
|
@ -7,22 +6,22 @@ String userAutoLoginModelToJson(UserAutoLoginModel data) => json.encode(data.toJ
|
|
|
|
|
|
|
|
|
|
class UserAutoLoginModel {
|
|
|
|
|
UserAutoLoginModel({
|
|
|
|
|
this.response,
|
|
|
|
|
this.response,
|
|
|
|
|
this.errorResponses,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Response? response;
|
|
|
|
|
dynamic? errorResponses;
|
|
|
|
|
List<ErrorResponse>? errorResponses;
|
|
|
|
|
|
|
|
|
|
factory UserAutoLoginModel.fromJson(Map<String, dynamic> json) => UserAutoLoginModel(
|
|
|
|
|
response: json["response"] == null ? null : Response.fromJson(json["response"]),
|
|
|
|
|
errorResponses: json["errorResponses"],
|
|
|
|
|
);
|
|
|
|
|
response: json["response"] == null ? null : Response.fromJson(json["response"]),
|
|
|
|
|
errorResponses: json["errorResponses"] == null ? null : List<ErrorResponse>.from(json["errorResponses"].map((x) => ErrorResponse.fromJson(x))),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
"response": response == null ? null : response!.toJson(),
|
|
|
|
|
"errorResponses": errorResponses,
|
|
|
|
|
};
|
|
|
|
|
"response": response == null ? null : response!.toJson(),
|
|
|
|
|
"errorResponses": errorResponses == null ? null : List<dynamic>.from(errorResponses!.map((x) => x.toJson())),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Response {
|
|
|
|
|
@ -51,28 +50,48 @@ class Response {
|
|
|
|
|
String? encryptedUserName;
|
|
|
|
|
|
|
|
|
|
factory Response.fromJson(Map<String, dynamic> json) => Response(
|
|
|
|
|
id: json["id"] == null ? null : json["id"],
|
|
|
|
|
userName: json["userName"] == null ? null : json["userName"],
|
|
|
|
|
email: json["email"] == null ? null : json["email"],
|
|
|
|
|
phone: json["phone"] == null ? null : json["phone"],
|
|
|
|
|
title: json["title"] == null ? null : json["title"],
|
|
|
|
|
token: json["token"] == null ? null : json["token"],
|
|
|
|
|
isDomainUser: json["isDomainUser"] == null ? null : json["isDomainUser"],
|
|
|
|
|
isActiveCode: json["isActiveCode"] == null ? null : json["isActiveCode"],
|
|
|
|
|
encryptedUserId: json["encryptedUserId"] == null ? null : json["encryptedUserId"],
|
|
|
|
|
encryptedUserName: json["encryptedUserName"] == null ? null : json["encryptedUserName"],
|
|
|
|
|
);
|
|
|
|
|
id: json["id"] == null ? null : json["id"],
|
|
|
|
|
userName: json["userName"] == null ? null : json["userName"],
|
|
|
|
|
email: json["email"] == null ? null : json["email"],
|
|
|
|
|
phone: json["phone"] == null ? null : json["phone"],
|
|
|
|
|
title: json["title"] == null ? null : json["title"],
|
|
|
|
|
token: json["token"] == null ? null : json["token"],
|
|
|
|
|
isDomainUser: json["isDomainUser"] == null ? null : json["isDomainUser"],
|
|
|
|
|
isActiveCode: json["isActiveCode"] == null ? null : json["isActiveCode"],
|
|
|
|
|
encryptedUserId: json["encryptedUserId"] == null ? null : json["encryptedUserId"],
|
|
|
|
|
encryptedUserName: json["encryptedUserName"] == null ? null : json["encryptedUserName"],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
"id": id == null ? null : id,
|
|
|
|
|
"userName": userName == null ? null : userName,
|
|
|
|
|
"email": email == null ? null : email,
|
|
|
|
|
"phone": phone == null ? null : phone,
|
|
|
|
|
"title": title == null ? null : title,
|
|
|
|
|
"token": token == null ? null : token,
|
|
|
|
|
"isDomainUser": isDomainUser == null ? null : isDomainUser,
|
|
|
|
|
"isActiveCode": isActiveCode == null ? null : isActiveCode,
|
|
|
|
|
"encryptedUserId": encryptedUserId == null ? null : encryptedUserId,
|
|
|
|
|
"encryptedUserName": encryptedUserName == null ? null : encryptedUserName,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ErrorResponse {
|
|
|
|
|
ErrorResponse({
|
|
|
|
|
this.fieldName,
|
|
|
|
|
this.message,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
String? fieldName;
|
|
|
|
|
String? message;
|
|
|
|
|
|
|
|
|
|
factory ErrorResponse.fromJson(Map<String, dynamic> json) => ErrorResponse(
|
|
|
|
|
fieldName: json["fieldName"] == null ? null : json["fieldName"],
|
|
|
|
|
message: json["message"] == null ? null : json["message"],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
"id": id == null ? null : id,
|
|
|
|
|
"userName": userName == null ? null : userName,
|
|
|
|
|
"email": email == null ? null : email,
|
|
|
|
|
"phone": phone == null ? null : phone,
|
|
|
|
|
"title": title == null ? null : title,
|
|
|
|
|
"token": token == null ? null : token,
|
|
|
|
|
"isDomainUser": isDomainUser == null ? null : isDomainUser,
|
|
|
|
|
"isActiveCode": isActiveCode == null ? null : isActiveCode,
|
|
|
|
|
"encryptedUserId": encryptedUserId == null ? null : encryptedUserId,
|
|
|
|
|
"encryptedUserName": encryptedUserName == null ? null : encryptedUserName,
|
|
|
|
|
};
|
|
|
|
|
"fieldName": fieldName == null ? null : fieldName,
|
|
|
|
|
"message": message == null ? null : message,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|