copyWith method

Data copyWith({
  1. String? uuid,
  2. String? reference,
  3. String? cryptoTransactionHash,
  4. num? expectedAmountInCrypto,
  5. num? expectedAmountInUSD,
  6. num? expectedAmountInBaseFiat,
  7. num? expectedAmountInBusinessPrimaryFiat,
  8. num? receivedAmountInCrypto,
  9. num? receivedAmountInUSD,
  10. num? receivedAmountInBaseFiat,
  11. num? receivedAmountInBusinessPrimaryFiat,
  12. num? excessAmountReceivedInCrypto,
  13. num? feeInCrypto,
  14. num? expectedAmountInCryptoPlusFee,
  15. String? crypto,
  16. String? baseFiat,
  17. String? businessPrimaryFiat,
  18. num? baseFiatToUSDRate,
  19. num? baseFiatToBusinessPrimaryFiatRate,
  20. num? usdToCryptoRate,
  21. String? address,
  22. dynamic metadata,
  23. String? environment,
  24. String? origin,
  25. String? businessId,
  26. String? userId,
  27. String? customerId,
  28. String? expiresAt,
  29. String? completedAt,
  30. String? status,
  31. String? failureReason,
  32. String? createdAtDateOnly,
  33. String? createdAt,
  34. 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,
    );