copyWithWrapped method
SignalEvaluateRequest
copyWithWrapped({
- Wrapped<
String?> ? clientId, - Wrapped<
String?> ? secret, - Wrapped<
String> ? accessToken, - Wrapped<
String> ? accountId, - Wrapped<
String> ? clientTransactionId, - Wrapped<
double> ? amount, - Wrapped<
bool?> ? userPresent, - Wrapped<
String?> ? clientUserId, - Wrapped<
bool?> ? isRecurring, - Wrapped<
String?> ? defaultPaymentMethod, - Wrapped<
SignalUser?> ? user, - Wrapped<
SignalDevice?> ? device,
Implementation
SignalEvaluateRequest copyWithWrapped(
{Wrapped<String?>? clientId,
Wrapped<String?>? secret,
Wrapped<String>? accessToken,
Wrapped<String>? accountId,
Wrapped<String>? clientTransactionId,
Wrapped<double>? amount,
Wrapped<bool?>? userPresent,
Wrapped<String?>? clientUserId,
Wrapped<bool?>? isRecurring,
Wrapped<String?>? defaultPaymentMethod,
Wrapped<SignalUser?>? user,
Wrapped<SignalDevice?>? device}) {
return SignalEvaluateRequest(
clientId: (clientId != null ? clientId.value : this.clientId),
secret: (secret != null ? secret.value : this.secret),
accessToken:
(accessToken != null ? accessToken.value : this.accessToken),
accountId: (accountId != null ? accountId.value : this.accountId),
clientTransactionId: (clientTransactionId != null
? clientTransactionId.value
: this.clientTransactionId),
amount: (amount != null ? amount.value : this.amount),
userPresent:
(userPresent != null ? userPresent.value : this.userPresent),
clientUserId:
(clientUserId != null ? clientUserId.value : this.clientUserId),
isRecurring:
(isRecurring != null ? isRecurring.value : this.isRecurring),
defaultPaymentMethod: (defaultPaymentMethod != null
? defaultPaymentMethod.value
: this.defaultPaymentMethod),
user: (user != null ? user.value : this.user),
device: (device != null ? device.value : this.device));
}