Document class Null safety
Document is a record inside of a Collection.
Constructors
-
Document({required String id, required DateTime created, required DateTime updated, @Default('') String collectionId, @Default('') String collectionName, required Archive archive, @JsonExtra() @Default({}) Map<
String, dynamic> extra}) -
Document is a record inside of a Collection.
constfactory
-
Document.fromJson(Map<
String, dynamic> json) -
Creates a Document from Json map
factory
Properties
- archive → Archive
-
read-onlyinherited
- collectionId → String
-
read-onlyinherited
- collectionName → String
-
read-onlyinherited
-
copyWith
→ $DocumentCopyWith<
Document> -
read-onlyinherited
- created → DateTime
-
read-onlyinherited
-
extra
→ Map<
String, dynamic> -
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id → String
-
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- updated → DateTime
-
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited