data_ext library

Data structures to represent data objects and arrays with JSON integration.

DataObject can represent data like JSON Objects or properties as a map. DataArray can represent data like JSON Arrays or properties as a list.

This package is same as the package:attributes/data.dart but contains also base implementation classes to help implementing data object and array classes.

DataObjectView implements DataObject and is a default implementation for viewing data objects.

DataArrayView implements DataArray and is a default implementation for viewing data arrays.

Both DataObjectView and DataArrayView can be extended by external code packages as necessary.

Usage: import package:attributes/data_ext.dart

Classes

DataArray
An interface for a data array with property values accessed by int keys (or indexes).
DataArrayView<Obj extends DataObject, Arr extends DataArray>
A base implemention of DataArray as a view of Iterable<Object?> source data.
DataElement<K>
An interface for a data element that is a collection with accessors for typed values.
DataObject
An interface for a data object with property values accessed by String keys.
DataObjectView<Obj extends DataObject, Arr extends DataArray>
A base implemention of DataObject as a view of Map<String, Object?> source data.
Identifier
An interface for an identifier of something, represented as String, int or BigInt.