ModelDocDocument class
Portable document composed of indexed blocks.
Constructors
-
ModelDocDocument({required String id, required String title, required Map<
int, ModelDocBlock> blocksByIndex}) -
const
-
ModelDocDocument.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
blocksByIndex
→ Map<
int, ModelDocBlock> -
final
- hashCode → int
-
Gets the hash code for this entity model.
no setteroverride
- id → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
Methods
-
copyWith(
{String? id, String? title, Map< int, ModelDocBlock> ? blocksByIndex}) → ModelDocDocument -
Creates a copy of the entity model.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the entity model to a JSON Map.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Checks whether the given
otherobject is equal to this entity model.override