throwApiExceptionIfError method

void throwApiExceptionIfError()

Implementation

void throwApiExceptionIfError(){
  if (succeeded != null && !succeeded!) {
    throw ApiException(
        errorCode: errorCode,
        errorMessage: errorMessage);
  }
}