copyWithCompanion method

StoredCheckpoint copyWithCompanion(
  1. KalamCheckpointsCompanion data
)

Implementation

StoredCheckpoint copyWithCompanion(KalamCheckpointsCompanion data) {
  return StoredCheckpoint(
    accountKey: data.accountKey.present
        ? data.accountKey.value
        : this.accountKey,
    subscriptionId: data.subscriptionId.present
        ? data.subscriptionId.value
        : this.subscriptionId,
    seq: data.seq.present ? data.seq.value : this.seq,
    updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt,
  );
}