You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
718 B
Dart
32 lines
718 B
Dart
class UpdatePassword {
|
|
final String password;
|
|
final String confirmPassword;
|
|
final String email;
|
|
final String token;
|
|
|
|
UpdatePassword({
|
|
required this.password,
|
|
required this.confirmPassword,
|
|
required this.email,
|
|
required this.token,
|
|
});
|
|
|
|
factory UpdatePassword.fromJson(Map<String, dynamic> json) {
|
|
return UpdatePassword(
|
|
password: json['password'] as String,
|
|
confirmPassword: json['confirmPassword'] as String,
|
|
email: json['email'] as String,
|
|
token: json['token'] as String,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'password': password,
|
|
'confirmPassword': confirmPassword,
|
|
'email': email,
|
|
'token': token,
|
|
};
|
|
}
|
|
}
|