mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 18:16:21 +00:00
34 lines
833 B
Dart
34 lines
833 B
Dart
class SignUpModel {
|
|
final String email;
|
|
final String password;
|
|
final String firstName;
|
|
final String lastName;
|
|
final bool hasAcceptedAppAgreement;
|
|
|
|
SignUpModel(
|
|
{required this.email,
|
|
required this.password,
|
|
required this.hasAcceptedAppAgreement,
|
|
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'],
|
|
hasAcceptedAppAgreement: true);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'email': email,
|
|
'password': password,
|
|
'firstName': firstName,
|
|
'lastName': lastName,
|
|
"hasAcceptedAppAgreement": hasAcceptedAppAgreement
|
|
};
|
|
}
|
|
}
|