copyWith method

BankTransfer copyWith({
  1. String? id,
  2. ACHClass? achClass,
  3. String? accountId,
  4. BankTransferType? type,
  5. BankTransferUser? user,
  6. String? amount,
  7. String? isoCurrencyCode,
  8. String? description,
  9. DateTime? created,
  10. BankTransferStatus? status,
  11. BankTransferNetwork? network,
  12. bool? cancellable,
  13. BankTransferFailure? failureReason,
  14. String? customTag,
  15. BankTransferMetadata? metadata,
  16. String? originationAccountId,
  17. BankTransferDirection? direction,
})

Implementation

BankTransfer copyWith(
    {String? id,
    enums.ACHClass? achClass,
    String? accountId,
    enums.BankTransferType? type,
    BankTransferUser? user,
    String? amount,
    String? isoCurrencyCode,
    String? description,
    DateTime? created,
    enums.BankTransferStatus? status,
    enums.BankTransferNetwork? network,
    bool? cancellable,
    BankTransferFailure? failureReason,
    String? customTag,
    BankTransferMetadata? metadata,
    String? originationAccountId,
    enums.BankTransferDirection? direction}) {
  return BankTransfer(
      id: id ?? this.id,
      achClass: achClass ?? this.achClass,
      accountId: accountId ?? this.accountId,
      type: type ?? this.type,
      user: user ?? this.user,
      amount: amount ?? this.amount,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      description: description ?? this.description,
      created: created ?? this.created,
      status: status ?? this.status,
      network: network ?? this.network,
      cancellable: cancellable ?? this.cancellable,
      failureReason: failureReason ?? this.failureReason,
      customTag: customTag ?? this.customTag,
      metadata: metadata ?? this.metadata,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      direction: direction ?? this.direction);
}