copyWith method
BankTransfer
copyWith({
- String? id,
- ACHClass? achClass,
- String? accountId,
- BankTransferType? type,
- BankTransferUser? user,
- String? amount,
- String? isoCurrencyCode,
- String? description,
- DateTime? created,
- BankTransferStatus? status,
- BankTransferNetwork? network,
- bool? cancellable,
- BankTransferFailure? failureReason,
- String? customTag,
- BankTransferMetadata? metadata,
- String? originationAccountId,
- 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);
}