Change Password UI #2
This commit is contained in:
0
lib/api/services/change_password_service.dart
Normal file
0
lib/api/services/change_password_service.dart
Normal file
16
lib/data/models/otp.dart
Normal file
16
lib/data/models/otp.dart
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
class Otp {
|
||||||
|
final String mobileNumber;
|
||||||
|
final String type;
|
||||||
|
|
||||||
|
Otp({
|
||||||
|
required this.mobileNumber,
|
||||||
|
required this.type,
|
||||||
|
});
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
return {
|
||||||
|
'mobileNumber': mobileNumber,
|
||||||
|
'type': type,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
14
lib/data/models/otp_verify.dart
Normal file
14
lib/data/models/otp_verify.dart
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
class OtpVerify{
|
||||||
|
final String otp;
|
||||||
|
|
||||||
|
OtpVerify({
|
||||||
|
required this.otp,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
return {
|
||||||
|
'otp': otp,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user