YustDoc class abstract

A document, what can be saved to the Firestore database.

Implementers

Constructors

YustDoc({String id = '', DateTime? createdAt, String? createdBy, DateTime? modifiedAt, String? modifiedBy, String? userId, String? envId})
YustDoc.fromJson(Map<String, dynamic> json)

Properties

createdAt DateTime?
getter/setter pair
createdBy String?
getter/setter pair
envId String?
getter/setter pair
hasChanges bool
are there changes to be saved?
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
modifiedAt DateTime?
getter/setter pair
modifiedBy String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateMask Set<String>
The fields that should be updated.
no setter
userId String?
getter/setter pair

Methods

clearUpdateMask() → void
clear the update mask
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDelete() Future<void>
is triggerd when the document is removed
onSave() Future<void>
is triggerd when the document is saved
toExportJson() Map<String, dynamic>
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

convertTimestamp(dynamic value) → dynamic
Converts a firebase timestamp to a DateTime.