create#

classmethod Image.create(**kwargs)#

Factory-style creation that dispatches to the correct subclass.

When invoked on Item, the caller must provide a type keyword argument identifying the desired item type. For concrete subclasses, type is injected automatically.

Parameters:
**kwargs

Fields required by the concrete item type. When called on Item, must include type. Eg: type="table", content=my_array.

Returns:
Item

Newly created and saved item instance.

Raises:
ADRException

If type is missing when called on Item.