imageAsResource property

Resource get imageAsResource

Returns a Resource object that represents the metadata.image of this Resource.

Throws MissingHueNetworkException if the hueNetwork is null, if the image cannot be found on the hueNetwork, or if the image's ResourceType cannot be found on the hueNetwork.

Implementation

Resource get imageAsResource => getRelativeAsResource(metadata.image);