from static method

ResourceContent? from(
  1. Object? rsc
)

Implementation

static ResourceContent? from(Object? rsc) {
  if (rsc is ResourceContent) return rsc;
  if (rsc is Resource) return ResourceContent(rsc);
  return ResourceContent.fromURI(rsc);
}