For the life of me I cannot work out how to parse this value to a MediaWithCrops object. I can use the mediaKey to return the item from the media library and parse as IPublishedContent, but this isn't going to work for when I want to make use of crops within a view.
If anybody has come across this before and can point me in the right direction it would be most appreciated.
Parsing a MediaPicker3 raw value as MediaWithCrops
I've got the following raw value stored within a field of a custom table which is being set with a MediaPicker3 data type (using Konstrukt):
For the life of me I cannot work out how to parse this value to a MediaWithCrops object. I can use the
mediaKey
to return the item from the media library and parse asIPublishedContent
, but this isn't going to work for when I want to make use of crops within a view.If anybody has come across this before and can point me in the right direction it would be most appreciated.
Thanks, Andy
is working on a reply...