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.
33 lines
726 B
Dart
33 lines
726 B
Dart
|
1 month ago
|
class ChangePasswordRequest {
|
||
|
|
String oldPassword = "";
|
||
|
|
String newPassword = "";
|
||
|
|
String email = "";
|
||
|
|
|
||
|
|
ChangePasswordRequest({
|
||
|
|
this.oldPassword = "",
|
||
|
|
this.newPassword = "",
|
||
|
|
this.email = "",
|
||
|
|
});
|
||
|
|
|
||
|
|
Map<String, dynamic> toMap() {
|
||
|
|
return {
|
||
|
|
'oldPassword': oldPassword,
|
||
|
|
'newPassword': newPassword,
|
||
|
|
'email': email,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
factory ChangePasswordRequest.fromMap(Map<String, dynamic> map) {
|
||
|
|
return ChangePasswordRequest(
|
||
|
|
oldPassword: map['oldPassword'],
|
||
|
|
newPassword: map['newPassword'],
|
||
|
|
email: map['email'],
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'ChangePasswordRequest{oldPassword: $oldPassword, newPassword: $newPassword, email: $email}';
|
||
|
|
}
|
||
|
|
}
|