14 lines
256 B
Dart
14 lines
256 B
Dart
class OtpModel {
|
|
final String userId; // Keep as String
|
|
final String otp;
|
|
|
|
OtpModel({required this.userId, required this.otp});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'user_id': userId, // Send as String
|
|
'otp': otp,
|
|
};
|
|
}
|
|
}
|