Complete refactoring SFM App Source Code
This commit is contained in:
17
lib/feature/auth/login/model/login_model.dart
Normal file
17
lib/feature/auth/login/model/login_model.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
class LoginModel {
|
||||
int? exp;
|
||||
int? iat;
|
||||
String? id;
|
||||
String? iss;
|
||||
String? role;
|
||||
|
||||
LoginModel({this.exp, this.iat, this.id, this.iss, this.role});
|
||||
|
||||
LoginModel.fromJson(Map<String, dynamic> json) {
|
||||
exp = json['exp'];
|
||||
iat = json['iat'];
|
||||
id = json['id'];
|
||||
iss = json['iss'];
|
||||
role = json['role'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user