last 16-10-2025
This commit is contained in:
commit
7546b7348c
269 files changed
+36404
No files matched your search
@@ -0,0 +1,22 @@
|
||||
class LoginModel {
|
||||
String email;
|
||||
String password;
|
||||
|
||||
LoginModel({required this.email, required this.password});
|
||||
|
||||
// For converting to JSON
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'email': email,
|
||||
'password': password,
|
||||
};
|
||||
}
|
||||
|
||||
// For creating an instance from JSON
|
||||
factory LoginModel.fromJson(Map<String, dynamic> json) {
|
||||
return LoginModel(
|
||||
email: json['email'] ?? '',
|
||||
password: json['password'] ?? '',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user