28 lines
672 B
Dart
28 lines
672 B
Dart
class AuthModel {
|
|
String? message;
|
|
String? token;
|
|
int? userId;
|
|
String? userName;
|
|
String? userType;
|
|
|
|
AuthModel({this.message, this.token, this.userId, this.userName, this.userType});
|
|
|
|
AuthModel.fromJson(Map<String, dynamic> json) {
|
|
message = json['message'];
|
|
token = json['token'];
|
|
userId = json['userId'];
|
|
userName = json['userName'];
|
|
userType = json['userType'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['message'] = message;
|
|
data['token'] = token;
|
|
data['userId'] = userId;
|
|
data['userName'] = userName;
|
|
data['userType'] = userType;
|
|
return data;
|
|
}
|
|
}
|