@classmethod
def from_dict(cls, data: dict) ->'CollectionArgument':
    """
        Creates a :class:`~github.query.CollectionArgument` object from
        a dict.

        Parameters
        ----------
        data: :class:`dict`
            The dict to convert to a
            :class:`~github.query.CollectionArgument`.

        Returns
        -------
        :class:`~github.query.CollectionArgument`
            The collection argument object.
        """
    name = data['name']
    value = data['value']
    argument = cls(name=name, value=value)
    return argument
