oplog property

OpLog get oplog

Implementation

OpLog get oplog {
  OpLog oplog = OpLog()
    ..entityString = entity.toJson()
    ..entityType = type
    ..operation = operation
    ..serverGeneratedId = serverGeneratedId
    ..clientReferenceId = clientReferenceId
    ..syncedUpOn = syncedUpOn
    ..syncedDownOn = syncedDownOn
    ..createdBy = createdBy
    ..createdAt = createdAt
    ..syncedUp = syncedUp
    ..nonRecoverableError = nonRecoverableError
    ..additionalIds = additionalIds
        .map((e) => o.AdditionalId()
          ..id = e.id
          ..idType = e.idType)
        .toList()
    ..syncedDown = syncedDown
    ..syncDownRetryCount = syncDownRetryCount
    ..rowVersion = rowVersion;

  if (id != null) {
    oplog.id = id!;
  }

  return oplog;
}