@classmethod
def _build(cls, model_class, *args, **kwargs):
    """Build an instance of the associated class, with overriden attrs.
        """
    obj = model_class()
    for key, value in kwargs.items():
        if key == 'type':
            obj.fields[key] = value
        else:
            setattr(obj, key, value)
    return obj
