src/Factory/AssetFactory.php
public static function createFromAPIResponse(string $objectType, array $assets): array
    {
        switch($objectType) {
            case MoovlyObject::TYPE_VIDEO:
                return self::createAssetsForVideo($assets);
            case MoovlyObject::TYPE_SOUND:
                return self::createAssetsForSound($assets);
            case MoovlyObject::TYPE_IMAGE:
                return self::createAssetsForImage($assets);
            default:
                return [];
        }
    }
public static function createFromAPIResponse(string $objectType, array $assets): array
    {
        switch($objectType) {
            case MoovlyObject::TYPE_VIDEO:
                return self::createAssetsForVideo($assets);
            case MoovlyObject::TYPE_SOUND:
                return self::createAssetsForSound($assets);
            case MoovlyObject::TYPE_IMAGE:
                return self::createAssetsForImage($assets);
            default:
                return [];
        }
    }
@param string $objectType
@param array  $assets

@return Asset[]