copyWith method
      
Transfer
copyWith({ 
    
    
- String? id,
- ACHClass? achClass,
- String? accountId,
- TransferType? type,
- TransferUserInResponse? user,
- String? amount,
- String? description,
- DateTime? created,
- TransferStatus? status,
- TransferSweepStatus? sweepStatus,
- TransferNetwork? network,
- bool? cancellable,
- TransferFailure? failureReason,
- TransferMetadata? metadata,
- String? originationAccountId,
- TransferAuthorizationGuaranteeDecision? guaranteeDecision,
- TransferAuthorizationGuaranteeDecisionRationale? guaranteeDecisionRationale,
- String? isoCurrencyCode,
- DateTime? standardReturnWindow,
- DateTime? unauthorizedReturnWindow,
- String? originatorClientId,
- List<TransferRefund> ? refunds,
Implementation
Transfer copyWith(
    {String? id,
    enums.ACHClass? achClass,
    String? accountId,
    enums.TransferType? type,
    TransferUserInResponse? user,
    String? amount,
    String? description,
    DateTime? created,
    enums.TransferStatus? status,
    enums.TransferSweepStatus? sweepStatus,
    enums.TransferNetwork? network,
    bool? cancellable,
    TransferFailure? failureReason,
    TransferMetadata? metadata,
    String? originationAccountId,
    enums.TransferAuthorizationGuaranteeDecision? guaranteeDecision,
    TransferAuthorizationGuaranteeDecisionRationale?
        guaranteeDecisionRationale,
    String? isoCurrencyCode,
    DateTime? standardReturnWindow,
    DateTime? unauthorizedReturnWindow,
    String? originatorClientId,
    List<TransferRefund>? refunds}) {
  return Transfer(
      id: id ?? this.id,
      achClass: achClass ?? this.achClass,
      accountId: accountId ?? this.accountId,
      type: type ?? this.type,
      user: user ?? this.user,
      amount: amount ?? this.amount,
      description: description ?? this.description,
      created: created ?? this.created,
      status: status ?? this.status,
      sweepStatus: sweepStatus ?? this.sweepStatus,
      network: network ?? this.network,
      cancellable: cancellable ?? this.cancellable,
      failureReason: failureReason ?? this.failureReason,
      metadata: metadata ?? this.metadata,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      guaranteeDecision: guaranteeDecision ?? this.guaranteeDecision,
      guaranteeDecisionRationale:
          guaranteeDecisionRationale ?? this.guaranteeDecisionRationale,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      standardReturnWindow: standardReturnWindow ?? this.standardReturnWindow,
      unauthorizedReturnWindow:
          unauthorizedReturnWindow ?? this.unauthorizedReturnWindow,
      originatorClientId: originatorClientId ?? this.originatorClientId,
      refunds: refunds ?? this.refunds);
}