custom static method

Insertable<StoredRowState> custom({
  1. Expression<String>? accountKey,
  2. Expression<String>? tableId,
  3. Expression<String>? rowKey,
  4. Expression<String>? phase,
  5. Expression<String>? actionId,
  6. Expression<int>? attemptCount,
  7. Expression<DateTime>? nextRetryAt,
  8. Expression<String>? errorCode,
  9. Expression<String>? errorMessage,
  10. Expression<String>? lastServerSeq,
  11. Expression<String>? pendingValuesJson,
  12. Expression<bool>? tombstone,
  13. Expression<DateTime>? updatedAt,
  14. Expression<int>? rowid,
})

Implementation

static Insertable<StoredRowState> custom({
  Expression<String>? accountKey,
  Expression<String>? tableId,
  Expression<String>? rowKey,
  Expression<String>? phase,
  Expression<String>? actionId,
  Expression<int>? attemptCount,
  Expression<DateTime>? nextRetryAt,
  Expression<String>? errorCode,
  Expression<String>? errorMessage,
  Expression<String>? lastServerSeq,
  Expression<String>? pendingValuesJson,
  Expression<bool>? tombstone,
  Expression<DateTime>? updatedAt,
  Expression<int>? rowid,
}) {
  return RawValuesInsertable({
    if (accountKey != null) 'account_key': accountKey,
    if (tableId != null) 'table_id': tableId,
    if (rowKey != null) 'row_key': rowKey,
    if (phase != null) 'phase': phase,
    if (actionId != null) 'action_id': actionId,
    if (attemptCount != null) 'attempt_count': attemptCount,
    if (nextRetryAt != null) 'next_retry_at': nextRetryAt,
    if (errorCode != null) 'error_code': errorCode,
    if (errorMessage != null) 'error_message': errorMessage,
    if (lastServerSeq != null) 'last_server_seq': lastServerSeq,
    if (pendingValuesJson != null) 'pending_values_json': pendingValuesJson,
    if (tombstone != null) 'tombstone': tombstone,
    if (updatedAt != null) 'updated_at': updatedAt,
    if (rowid != null) 'rowid': rowid,
  });
}