fromOpLog<T extends EntityModel> static method
Implementation
static OpLogEntry<T> fromOpLog<T extends EntityModel>(OpLog e) {
return OpLogEntry<T>(
e.getEntity<T>(),
e.operation,
createdBy: e.createdBy,
createdAt: e.createdAt,
type: e.entityType,
serverGeneratedId: e.serverGeneratedId,
id: e.id,
clientReferenceId: e.clientReferenceId,
nonRecoverableError: e.nonRecoverableError,
syncedDown: e.syncedDown,
syncedDownOn: e.syncedDownOn,
syncedUp: e.syncedUp,
syncedUpOn: e.syncedUpOn,
additionalIds: e.additionalIds
.map((e) => AdditionalId(idType: e.idType, id: e.id))
.toList(),
syncDownRetryCount: e.syncDownRetryCount,
rowVersion: e.rowVersion,
);
}