copyWithCompanion method

StoredRowState copyWithCompanion(
  1. KalamRowStatesCompanion data
)

Implementation

StoredRowState copyWithCompanion(KalamRowStatesCompanion data) {
  return StoredRowState(
    accountKey: data.accountKey.present
        ? data.accountKey.value
        : this.accountKey,
    tableId: data.tableId.present ? data.tableId.value : this.tableId,
    rowKey: data.rowKey.present ? data.rowKey.value : this.rowKey,
    phase: data.phase.present ? data.phase.value : this.phase,
    actionId: data.actionId.present ? data.actionId.value : this.actionId,
    attemptCount: data.attemptCount.present
        ? data.attemptCount.value
        : this.attemptCount,
    nextRetryAt: data.nextRetryAt.present
        ? data.nextRetryAt.value
        : this.nextRetryAt,
    errorCode: data.errorCode.present ? data.errorCode.value : this.errorCode,
    errorMessage: data.errorMessage.present
        ? data.errorMessage.value
        : this.errorMessage,
    lastServerSeq: data.lastServerSeq.present
        ? data.lastServerSeq.value
        : this.lastServerSeq,
    pendingValuesJson: data.pendingValuesJson.present
        ? data.pendingValuesJson.value
        : this.pendingValuesJson,
    tombstone: data.tombstone.present ? data.tombstone.value : this.tombstone,
    updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt,
  );
}