ModelTypeValidator.get_value¶
- ModelTypeValidator.get_value(obj, attr, accessor=None, default=<marshmallow.missing>)¶
Return the value for a given key from an object.
- Parameters
obj (object) – The object to get the value from.
attr (str) – The attribute/key in obj to get the value from.
accessor (callable) – A callable used to retrieve the value of attr from the object obj. Defaults to marshmallow.utils.get_value.