This commit is contained in:
efrilm
2025-09-18 07:28:01 +07:00
parent 3b26b19b25
commit 214dfe3262
6 changed files with 28 additions and 24 deletions
@@ -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 ?? '',
);