resolve<T extends APIObject> method

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

Implementation

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

  return resolveUri(referenceURI) as T?;
}