OpLogEntry<T extends EntityModel> class

Mixed-in types
Annotations
  • @MappableClass()

Constructors

OpLogEntry(T entity, DataOperation operation, {int? id, required DateTime createdAt, required String createdBy, required DataModelType type, bool syncedUp = false, bool syncedDown = false, DateTime? syncedUpOn, DateTime? syncedDownOn, String? serverGeneratedId, String? clientReferenceId, List<AdditionalId> additionalIds = const [], int syncDownRetryCount = 0, int rowVersion = 1, bool nonRecoverableError = false})
const

Properties

additionalIds List<AdditionalId>
final
clientReferenceId String?
final
copyWith OpLogEntryCopyWith<OpLogEntry<EntityModel>, OpLogEntry<EntityModel>, OpLogEntry<EntityModel>, EntityModel>
no setterinherited
createdAt DateTime
final
createdBy String
final
entity → T
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
nonRecoverableError bool
final
operation DataOperation
final
oplog OpLog
no setter
rowVersion int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverGeneratedId String?
final
syncDownRetryCount int
final
syncedDown bool
final
syncedDownOn DateTime?
final
syncedUp bool
final
syncedUpOn DateTime?
final
type DataModelType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromOpLog<T extends EntityModel>(OpLog e) OpLogEntry<T>