@classmethod
def _from_dict(cls, _dict):
    """Initialize a EnvironmentDocuments object from a json dictionary."""
    args = {}
    if 'indexed' in _dict:
        args['indexed'] = _dict.get('indexed')
    if 'maximum_allowed' in _dict:
        args['maximum_allowed'] = _dict.get('maximum_allowed')
    return cls(**args)
