Neos.Media/Classes/TypeConverter/AssetInterfaceConverter.php
public function getTypeOfChildProperty($targetType, $propertyName, PropertyMappingConfigurationInterface $configuration)
    {
        switch ($propertyName) {
            case 'resource':
                return PersistentResource::class;
            case 'originalAsset':
                return Image::class;
            case 'title':
                return 'string';
        }
        return parent::getTypeOfChildProperty($targetType, $propertyName, $configuration);
    }
public function getTypeOfChildProperty($targetType, $propertyName, PropertyMappingConfigurationInterface $configuration)
    {
        switch ($propertyName) {
            case 'resource':
                return PersistentResource::class;
            case 'originalAsset':
                return Image::class;
            case 'title':
                return 'string';
        }
        return parent::getTypeOfChildProperty($targetType, $propertyName, $configuration);
    }
public function getTypeOfChildProperty ( $ targetType , $ propertyName , PropertyMappingConfigurationInterface $ configuration ) { switch ( $ propertyName ) { case 'resource' : return PersistentResource :: class ; case 'originalAsset' : return Image :: class ; case 'title' : return 'string' ; } return parent :: getTypeOfChildProperty ( $ targetType , $ propertyName , $ configuration ) ; }
Convert the property "resource"

@param string $targetType
@param string $propertyName
@param PropertyMappingConfigurationInterface $configuration
@return string
Convert the property resource