copyWith method

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

Implementation

TransferCreateRequest copyWith(
    {String? clientId,
    String? secret,
    String? idempotencyKey,
    String? accessToken,
    String? accountId,
    String? authorizationId,
    enums.TransferType? type,
    enums.TransferNetwork? network,
    String? amount,
    String? description,
    enums.ACHClass? achClass,
    TransferUserInRequest? user,
    TransferMetadata? metadata,
    String? originationAccountId}) {
  return TransferCreateRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      idempotencyKey: idempotencyKey ?? this.idempotencyKey,
      accessToken: accessToken ?? this.accessToken,
      accountId: accountId ?? this.accountId,
      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);
}