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