signup method

  1. @override
Future<DataResult<bool>> signup({
  1. required NUIAuthSignUpReq request,
})

Implementation

@override
Future<DataResult<bool>> signup({required NUIAuthSignUpReq request}) async{
  final resp = await _getWeb().doPOST(
    url: "user/registration",
    bodyEnt: request,
    entity: NUIAuthStandardRespEnt(NUIEntType.MAP, (value) => asMap(value))
  );
  return _dataResultFactory.defineDataResult<bool>(resp, successDataIfNull: true, failureData: false);
  // final result = await _getWeb().doPOST(url: "auth/signup", bodyEnt: request, entity: NUIStandardHttpResponseEntity());
  // _processResponseMessage(result);
  // return result.body ?? NUIStandardHttpResponse(success: false, message: "NUIAuthApi => signup Failed");
}