copyWithWrapped method
DepositSwitchGetResponse
copyWithWrapped({
- Wrapped<
String> ? depositSwitchId, - Wrapped<
String?> ? targetAccountId, - Wrapped<
String?> ? targetItemId, - Wrapped<
DepositSwitchGetResponseState> ? state, - Wrapped<
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,
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));
}