OpLog class

The OpLog class represents an operation log in the database. It is annotated with @Collection() to indicate that it is a collection in the Isar database.

Annotations
  • @Collection()

Constructors

OpLog()

Properties

additionalIds List<AdditionalId>
getter/setter pair
clientReferenceId String?
getter/setter pair
createdAt DateTime
getter/setter pair
createdBy String
getter/setter pair
entityString String
getter/setter pair
entityType DataModelType
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ↔ Id
getter/setter pair
nonRecoverableError bool
getter/setter pair
operation DataOperation
getter/setter pair
rowVersion int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverGeneratedId String?
getter/setter pair
syncDownRetryCount int
getter/setter pair
syncedDown bool
getter/setter pair
syncedDownOn DateTime?
getter/setter pair
syncedUp bool
getter/setter pair
syncedUpOn DateTime?
getter/setter pair

Methods

entity<T extends EntityModel>(T entity) → void
The entity method is used to serialize an entity object into a JSON string and store it in the entityString field.
getEntity<T extends EntityModel>() → dynamic
The getEntity method is used to deserialize the entityString into an entity object. It uses the entityType field to determine the type of the entity and the appropriate mapper to use for deserialization.
getEntityTypeMapper({required String entityName, required String entityString}) → dynamic
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