DataItemConvertible

fun interface DataItemConvertible

Classes that implement this interface should be able to convert themselves successfully to an instance of DataItem. Typically this can be achieved by using DataItem.convert.

More complex cases can use DataList or DataObject to represent their properties in a more structured way, and can therefore be recreated if necessary from those data types using a reciprocal DataItemConverter

See also

Inheritors

Functions

Link copied to clipboard
abstract fun asDataItem(): DataItem

Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be: