src/Factory/UserFactory.php
public static function createFromAPIResponse(array $response): User
    {
        return (new User())
            ->setId($response['id'])
            ->setLocked((bool) $response['locked'])
            ->setUuid($response['uuid'])
        ;
    }
public static function createFromAPIResponse(array $response): User
    {
        return (new User())
            ->setId($response['id'])
            ->setLocked((bool) $response['locked'])
            ->setUuid($response['uuid'])
        ;
    }
@param array $response

@return User