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