toCompanion method

KalamRowStatesCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

KalamRowStatesCompanion toCompanion(bool nullToAbsent) {
  return KalamRowStatesCompanion(
    accountKey: Value(accountKey),
    tableId: Value(tableId),
    rowKey: Value(rowKey),
    phase: Value(phase),
    actionId: actionId == null && nullToAbsent
        ? const Value.absent()
        : Value(actionId),
    attemptCount: Value(attemptCount),
    nextRetryAt: nextRetryAt == null && nullToAbsent
        ? const Value.absent()
        : Value(nextRetryAt),
    errorCode: errorCode == null && nullToAbsent
        ? const Value.absent()
        : Value(errorCode),
    errorMessage: errorMessage == null && nullToAbsent
        ? const Value.absent()
        : Value(errorMessage),
    lastServerSeq: lastServerSeq == null && nullToAbsent
        ? const Value.absent()
        : Value(lastServerSeq),
    pendingValuesJson: pendingValuesJson == null && nullToAbsent
        ? const Value.absent()
        : Value(pendingValuesJson),
    tombstone: Value(tombstone),
    updatedAt: Value(updatedAt),
  );
}