Document class

The Document class represents a document with an identifier, slug, schema, and optional content stored as a map.

Constructors

Document.fromMap(Map map)
Document.fromMap(Map map) is a constructor that takes a Map as an argument and creates a new Document object from it.

Properties

content Map<String, Object>?
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema String
final
slug String
final

Methods

asMap() Map
The function returns a map containing the identifier, slug, schema, and content properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited