/**
* Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation.
*
* @param ImageInterface $source
* @param string $targetType must be 'string'
* @param array $convertedChildProperties
* @param PropertyMappingConfigurationInterface $configuration
* @return string The converted ImageInterface
*/
public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = null)
{
$data = parent::convertFrom($source, 'array', $convertedChildProperties, $configuration);
return json_encode($data);
}