copyWith method
Data
copyWith({
- String? uuid,
- String? reference,
- String? cryptoTransactionHash,
- num? expectedAmountInCrypto,
- num? expectedAmountInUSD,
- num? expectedAmountInBaseFiat,
- num? expectedAmountInBusinessPrimaryFiat,
- num? receivedAmountInCrypto,
- num? receivedAmountInUSD,
- num? receivedAmountInBaseFiat,
- num? receivedAmountInBusinessPrimaryFiat,
- num? excessAmountReceivedInCrypto,
- num? feeInCrypto,
- num? expectedAmountInCryptoPlusFee,
- String? crypto,
- String? baseFiat,
- String? businessPrimaryFiat,
- num? baseFiatToUSDRate,
- num? baseFiatToBusinessPrimaryFiatRate,
- num? usdToCryptoRate,
- String? address,
- dynamic metadata,
- String? environment,
- String? origin,
- String? businessId,
- String? userId,
- String? customerId,
- String? expiresAt,
- String? completedAt,
- String? status,
- String? failureReason,
- String? createdAtDateOnly,
- String? createdAt,
- Customer? customer,
Implementation
Data copyWith({
String? uuid,
String? reference,
String? cryptoTransactionHash,
num? expectedAmountInCrypto,
num? expectedAmountInUSD,
num? expectedAmountInBaseFiat,
num? expectedAmountInBusinessPrimaryFiat,
num? receivedAmountInCrypto,
num? receivedAmountInUSD,
num? receivedAmountInBaseFiat,
num? receivedAmountInBusinessPrimaryFiat,
num? excessAmountReceivedInCrypto,
num? feeInCrypto,
num? expectedAmountInCryptoPlusFee,
String? crypto,
String? baseFiat,
String? businessPrimaryFiat,
num? baseFiatToUSDRate,
num? baseFiatToBusinessPrimaryFiatRate,
num? usdToCryptoRate,
String? address,
dynamic metadata,
String? environment,
String? origin,
String? businessId,
String? userId,
String? customerId,
String? expiresAt,
String? completedAt,
String? status,
String? failureReason,
String? createdAtDateOnly,
String? createdAt,
Customer? customer,
}) =>
Data(
uuid: uuid ?? this.uuid,
reference: reference ?? this.reference,
cryptoTransactionHash:
cryptoTransactionHash ?? this.cryptoTransactionHash,
expectedAmountInCrypto:
expectedAmountInCrypto ?? this.expectedAmountInCrypto,
expectedAmountInUSD: expectedAmountInUSD ?? this.expectedAmountInUSD,
expectedAmountInBaseFiat:
expectedAmountInBaseFiat ?? this.expectedAmountInBaseFiat,
expectedAmountInBusinessPrimaryFiat:
expectedAmountInBusinessPrimaryFiat ??
this.expectedAmountInBusinessPrimaryFiat,
receivedAmountInCrypto:
receivedAmountInCrypto ?? this.receivedAmountInCrypto,
receivedAmountInUSD: receivedAmountInUSD ?? this.receivedAmountInUSD,
receivedAmountInBaseFiat:
receivedAmountInBaseFiat ?? this.receivedAmountInBaseFiat,
receivedAmountInBusinessPrimaryFiat:
receivedAmountInBusinessPrimaryFiat ??
this.receivedAmountInBusinessPrimaryFiat,
excessAmountReceivedInCrypto:
excessAmountReceivedInCrypto ?? this.excessAmountReceivedInCrypto,
feeInCrypto: feeInCrypto ?? this.feeInCrypto,
expectedAmountInCryptoPlusFee:
expectedAmountInCryptoPlusFee ?? this.expectedAmountInCryptoPlusFee,
crypto: crypto ?? this.crypto,
baseFiat: baseFiat ?? this.baseFiat,
businessPrimaryFiat: businessPrimaryFiat ?? this.businessPrimaryFiat,
baseFiatToUSDRate: baseFiatToUSDRate ?? this.baseFiatToUSDRate,
baseFiatToBusinessPrimaryFiatRate: baseFiatToBusinessPrimaryFiatRate ??
this.baseFiatToBusinessPrimaryFiatRate,
usdToCryptoRate: usdToCryptoRate ?? this.usdToCryptoRate,
address: address ?? this.address,
metadata: metadata ?? this.metadata,
environment: environment ?? this.environment,
origin: origin ?? this.origin,
businessId: businessId ?? this.businessId,
userId: userId ?? this.userId,
customerId: customerId ?? this.customerId,
expiresAt: expiresAt ?? this.expiresAt,
completedAt: completedAt ?? this.completedAt,
status: status ?? this.status,
failureReason: failureReason ?? this.failureReason,
createdAtDateOnly: createdAtDateOnly ?? this.createdAtDateOnly,
createdAt: createdAt ?? this.createdAt,
customer: customer ?? this.customer,
);