def from_dict(cls, d):
        """Build model object from a dict. Will be removed in v1.0"""
        warnings.warn(
            'from_dict is deprecated and will be removed in v1.0!',
            stacklevel=2)
        d = d or {}
        return cls(**d)
Build model object from a dict. Will be removed in v1.0