copyWithWrapped method

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

Implementation

DepositSwitchGetResponse copyWithWrapped(
    {Wrapped<String>? depositSwitchId,
    Wrapped<String?>? targetAccountId,
    Wrapped<String?>? targetItemId,
    Wrapped<enums.DepositSwitchGetResponseState>? state,
    Wrapped<enums.DepositSwitchGetResponseSwitchMethod?>? switchMethod,
    Wrapped<bool?>? accountHasMultipleAllocations,
    Wrapped<bool?>? isAllocatedRemainder,
    Wrapped<double?>? percentAllocated,
    Wrapped<double?>? amountAllocated,
    Wrapped<String?>? employerName,
    Wrapped<String?>? employerId,
    Wrapped<String?>? institutionName,
    Wrapped<String?>? institutionId,
    Wrapped<DateTime>? dateCreated,
    Wrapped<DateTime?>? dateCompleted,
    Wrapped<String>? requestId}) {
  return DepositSwitchGetResponse(
      depositSwitchId: (depositSwitchId != null
          ? depositSwitchId.value
          : this.depositSwitchId),
      targetAccountId: (targetAccountId != null
          ? targetAccountId.value
          : this.targetAccountId),
      targetItemId:
          (targetItemId != null ? targetItemId.value : this.targetItemId),
      state: (state != null ? state.value : this.state),
      switchMethod:
          (switchMethod != null ? switchMethod.value : this.switchMethod),
      accountHasMultipleAllocations: (accountHasMultipleAllocations != null
          ? accountHasMultipleAllocations.value
          : this.accountHasMultipleAllocations),
      isAllocatedRemainder: (isAllocatedRemainder != null
          ? isAllocatedRemainder.value
          : this.isAllocatedRemainder),
      percentAllocated: (percentAllocated != null
          ? percentAllocated.value
          : this.percentAllocated),
      amountAllocated: (amountAllocated != null
          ? amountAllocated.value
          : this.amountAllocated),
      employerName:
          (employerName != null ? employerName.value : this.employerName),
      employerId: (employerId != null ? employerId.value : this.employerId),
      institutionName: (institutionName != null
          ? institutionName.value
          : this.institutionName),
      institutionId:
          (institutionId != null ? institutionId.value : this.institutionId),
      dateCreated:
          (dateCreated != null ? dateCreated.value : this.dateCreated),
      dateCompleted:
          (dateCompleted != null ? dateCompleted.value : this.dateCompleted),
      requestId: (requestId != null ? requestId.value : this.requestId));
}