getErrorAsEnt method

NUIHttpStandardErrorResponse? getErrorAsEnt()

Implementation

NUIHttpStandardErrorResponse? getErrorAsEnt(){
  if(responseBody != null){
    try{
      return NUIHttpStandardResponseEntity().toEntity(responseBody);
    }catch(e){
      print("NUIHttpResponse -> Error getting error response as object with error : $e");
    }
  }
  return null;
}