Document class Null safety

Allows storage of unstructured data in a ManagedObject property.

Documents may be properties of ManagedObject table definition. They are a container for data that is a JSON-encodable Map or List. When storing a Document in a database column, data is JSON-encoded.

Use this type to store unstructured or 'schema-less' data. Example:

    class Event extends ManagedObject<_Event> implements _Event {}
    class _Event {
      int id;

      String type;

      Document details;


Document([dynamic data])
Creates an instance with an optional initial data. [...]


data ↔ dynamic
The JSON-encodable data contained by this instance. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]
operator [](dynamic keyOrIndex) → dynamic
Returns an element of data by index or key. [...]
operator []=(dynamic keyOrIndex, dynamic value) → void
Sets an element of data by index or key. [...]