copyWithCompanion method
Implementation
WalletConnectionTable copyWithCompanion(WalletConnectionsCompanion data) {
return WalletConnectionTable(
clientPubkey: data.clientPubkey.present
? data.clientPubkey.value
: this.clientPubkey,
name: data.name.present ? data.name.value : this.name,
walletServicePubkey: data.walletServicePubkey.present
? data.walletServicePubkey.value
: this.walletServicePubkey,
relays: data.relays.present ? data.relays.value : this.relays,
clientRelays: data.clientRelays.present
? data.clientRelays.value
: this.clientRelays,
budgetRenewal: data.budgetRenewal.present
? data.budgetRenewal.value
: this.budgetRenewal,
budgetRenewedAt: data.budgetRenewedAt.present
? data.budgetRenewedAt.value
: this.budgetRenewedAt,
maxAmountSat: data.maxAmountSat.present
? data.maxAmountSat.value
: this.maxAmountSat,
remainingAmountSat: data.remainingAmountSat.present
? data.remainingAmountSat.value
: this.remainingAmountSat,
expiresAt: data.expiresAt.present ? data.expiresAt.value : this.expiresAt,
methods: data.methods.present ? data.methods.value : this.methods,
customMethods: data.customMethods.present
? data.customMethods.value
: this.customMethods,
notifications: data.notifications.present
? data.notifications.value
: this.notifications,
customNotifications: data.customNotifications.present
? data.customNotifications.value
: this.customNotifications,
isolated: data.isolated.present ? data.isolated.value : this.isolated,
isFrozen: data.isFrozen.present ? data.isFrozen.value : this.isFrozen,
categories:
data.categories.present ? data.categories.value : this.categories,
createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt,
lud16: data.lud16.present ? data.lud16.value : this.lud16,
);
}