Update
This commit is contained in:
@@ -13,7 +13,7 @@ class CheckPhoneDto with _$CheckPhoneDto {
|
||||
factory CheckPhoneDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$CheckPhoneDtoFromJson(json);
|
||||
CheckPhone toDomain() => CheckPhone(
|
||||
status: status ?? '',
|
||||
status: status?.toCheckPhoneStatus() ?? CheckPhoneStatus.unknown,
|
||||
message: message ?? '',
|
||||
phoneNumber: data?.phoneNumber ?? '',
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ class ResendDto with _$ResendDto {
|
||||
|
||||
/// mapping ke domain
|
||||
Resend toDomain() => Resend(
|
||||
status: status ?? '',
|
||||
status: status?.toResendStatus() ?? ResendStatus.unknown,
|
||||
message: message ?? '',
|
||||
otpToken: data?.otpToken ?? '',
|
||||
expiresIn: data?.expiresIn ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user