src/Factory/ValueFactory.php
public static function createFromAPIResponse(array $response): Value
    {
        return (new Value())
            ->setExternalId($response['external_id'])
            ->setStatus($response['status'])
            ->setUrl($response['url'])
            ->setError($response['error'])
        ;
    }
public static function createFromAPIResponse(array $response): Value
    {
        return (new Value())
            ->setExternalId($response['external_id'])
            ->setStatus($response['status'])
            ->setUrl($response['url'])
            ->setError($response['error'])
        ;
    }
@param array $response

@return Value