copyWith method

DepositSwitchGetResponse copyWith({
  1. String? depositSwitchId,
  2. String? targetAccountId,
  3. String? targetItemId,
  4. DepositSwitchGetResponseState? state,
  5. DepositSwitchGetResponseSwitchMethod? switchMethod,
  6. bool? accountHasMultipleAllocations,
  7. bool? isAllocatedRemainder,
  8. double? percentAllocated,
  9. double? amountAllocated,
  10. String? employerName,
  11. String? employerId,
  12. String? institutionName,
  13. String? institutionId,
  14. DateTime? dateCreated,
  15. DateTime? dateCompleted,
  16. String? requestId,
})

Implementation

DepositSwitchGetResponse copyWith(
    {String? depositSwitchId,
    String? targetAccountId,
    String? targetItemId,
    enums.DepositSwitchGetResponseState? state,
    enums.DepositSwitchGetResponseSwitchMethod? switchMethod,
    bool? accountHasMultipleAllocations,
    bool? isAllocatedRemainder,
    double? percentAllocated,
    double? amountAllocated,
    String? employerName,
    String? employerId,
    String? institutionName,
    String? institutionId,
    DateTime? dateCreated,
    DateTime? dateCompleted,
    String? requestId}) {
  return DepositSwitchGetResponse(
      depositSwitchId: depositSwitchId ?? this.depositSwitchId,
      targetAccountId: targetAccountId ?? this.targetAccountId,
      targetItemId: targetItemId ?? this.targetItemId,
      state: state ?? this.state,
      switchMethod: switchMethod ?? this.switchMethod,
      accountHasMultipleAllocations:
          accountHasMultipleAllocations ?? this.accountHasMultipleAllocations,
      isAllocatedRemainder: isAllocatedRemainder ?? this.isAllocatedRemainder,
      percentAllocated: percentAllocated ?? this.percentAllocated,
      amountAllocated: amountAllocated ?? this.amountAllocated,
      employerName: employerName ?? this.employerName,
      employerId: employerId ?? this.employerId,
      institutionName: institutionName ?? this.institutionName,
      institutionId: institutionId ?? this.institutionId,
      dateCreated: dateCreated ?? this.dateCreated,
      dateCompleted: dateCompleted ?? this.dateCompleted,
      requestId: requestId ?? this.requestId);
}