@classmethod
def _from_dict(cls, _dict):
    """Initialize a MessageInputOptions object from a json dictionary."""
    args = {}
    if 'debug' in _dict:
        args['debug'] = _dict.get('debug')
    if 'restart' in _dict:
        args['restart'] = _dict.get('restart')
    if 'alternate_intents' in _dict:
        args['alternate_intents'] = _dict.get('alternate_intents')
    if 'return_context' in _dict:
        args['return_context'] = _dict.get('return_context')
    return cls(**args)
