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