resolve<T extends APIObject> method

T resolve<T extends APIObject>(
  1. T refObject
)

Implementation

T resolve<T extends APIObject>(T refObject) {
  if (refObject.referenceURI == null) {
    throw new ArgumentError("APIObject is not a reference to a component.");
  }

  return resolveUri(refObject.referenceURI) as T;
}