copyWith method

TransferCreateRequest copyWith({
  1. String? clientId,
  2. String? secret,
  3. String? idempotencyKey,
  4. String? accessToken,
  5. String? accountId,
  6. String? paymentProfileToken,
  7. String? authorizationId,
  8. TransferType? type,
  9. TransferNetwork? network,
  10. String? amount,
  11. String? description,
  12. ACHClass? achClass,
  13. TransferUserInRequestDeprecated? user,
  14. TransferMetadata? metadata,
  15. String? originationAccountId,
  16. String? isoCurrencyCode,
})

Implementation

TransferCreateRequest copyWith(
    {String? clientId,
    String? secret,
    String? idempotencyKey,
    String? accessToken,
    String? accountId,
    String? paymentProfileToken,
    String? authorizationId,
    enums.TransferType? type,
    enums.TransferNetwork? network,
    String? amount,
    String? description,
    enums.ACHClass? achClass,
    TransferUserInRequestDeprecated? user,
    TransferMetadata? metadata,
    String? originationAccountId,
    String? isoCurrencyCode}) {
  return TransferCreateRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      idempotencyKey: idempotencyKey ?? this.idempotencyKey,
      accessToken: accessToken ?? this.accessToken,
      accountId: accountId ?? this.accountId,
      paymentProfileToken: paymentProfileToken ?? this.paymentProfileToken,
      authorizationId: authorizationId ?? this.authorizationId,
      type: type ?? this.type,
      network: network ?? this.network,
      amount: amount ?? this.amount,
      description: description ?? this.description,
      achClass: achClass ?? this.achClass,
      user: user ?? this.user,
      metadata: metadata ?? this.metadata,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode);
}