@classmethod
def from_document(cls, document):
    """
        Load a specification from some Python objects.

        :param dict document: An object like the one that might be created by
            parsing a Swagger JSON specification string.
        """
    return cls(_behaviors={}, _pclasses={}, **document)
