copyWith method

BankTransferCreateRequest copyWith({
  1. String? clientId,
  2. String? secret,
  3. String? idempotencyKey,
  4. String? accessToken,
  5. String? accountId,
  6. BankTransferType? type,
  7. BankTransferNetwork? network,
  8. String? amount,
  9. String? isoCurrencyCode,
  10. String? description,
  11. ACHClass? achClass,
  12. BankTransferUser? user,
  13. String? customTag,
  14. BankTransferMetadata? metadata,
  15. String? originationAccountId,
})

Implementation

BankTransferCreateRequest copyWith(
    {String? clientId,
    String? secret,
    String? idempotencyKey,
    String? accessToken,
    String? accountId,
    enums.BankTransferType? type,
    enums.BankTransferNetwork? network,
    String? amount,
    String? isoCurrencyCode,
    String? description,
    enums.ACHClass? achClass,
    BankTransferUser? user,
    String? customTag,
    BankTransferMetadata? metadata,
    String? originationAccountId}) {
  return BankTransferCreateRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      idempotencyKey: idempotencyKey ?? this.idempotencyKey,
      accessToken: accessToken ?? this.accessToken,
      accountId: accountId ?? this.accountId,
      type: type ?? this.type,
      network: network ?? this.network,
      amount: amount ?? this.amount,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      description: description ?? this.description,
      achClass: achClass ?? this.achClass,
      user: user ?? this.user,
      customTag: customTag ?? this.customTag,
      metadata: metadata ?? this.metadata,
      originationAccountId:
          originationAccountId ?? this.originationAccountId);
}