last 16-10-2025

This commit is contained in:
mageshwaran committed 2025-10-16 11:21:52 +05:30
commit 7546b7348c
269 files changed
+36404

No files matched your search

+22
View File
@@ -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'] ?? '',
);
}
}