mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 18:16:21 +00:00
Added sign up screen and model
This commit is contained in:
29
lib/features/auth/model/signup_model.dart
Normal file
29
lib/features/auth/model/signup_model.dart
Normal file
@ -0,0 +1,29 @@
|
||||
class SignUpModel {
|
||||
final String email;
|
||||
final String password;
|
||||
final String firstName;
|
||||
final String lastName;
|
||||
|
||||
SignUpModel(
|
||||
{required this.email,
|
||||
required this.password,
|
||||
required this.firstName,
|
||||
required this.lastName});
|
||||
|
||||
factory SignUpModel.fromJson(Map<String, dynamic> json) {
|
||||
return SignUpModel(
|
||||
email: json['email'],
|
||||
password: json['password'],
|
||||
firstName: json['firstName'],
|
||||
lastName: json['lastName']);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'email': email,
|
||||
'password': password,
|
||||
'firstName': firstName,
|
||||
'lastName': lastName,
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user