checkCode method

  1. @override
Future<Either<Failure, AuthenticationInfoEntity>> checkCode(
  1. CheckCodeRequest checkCodeRequest
)
override

Implementation

@override
Future<Either<Failure, AuthenticationInfoEntity>> checkCode(
  CheckCodeRequest checkCodeRequest,
) =>
    request<AuthenticationInfoEntity>(
      () async {
        final CheckCodeResponse response = await dataSource.checkCode(
          checkCodeRequest,
        );
        final AuthenticationInfoEntity authInfoEntity =
            CheckCodeMapper.fromResponse(
          response: response,
        );

        return authInfoEntity;
      },
    );