copyWithWrapped method
Implementation
PayrollItem copyWithWrapped(
{Wrapped<String>? itemId,
Wrapped<String>? institutionId,
Wrapped<String>? institutionName,
Wrapped<List<PayrollIncomeAccountData>>? accounts,
Wrapped<List<PayrollIncomeObject>>? payrollIncome,
Wrapped<PayrollItemStatus?>? status,
Wrapped<DateTime?>? updatedAt}) {
return PayrollItem(
itemId: (itemId != null ? itemId.value : this.itemId),
institutionId:
(institutionId != null ? institutionId.value : this.institutionId),
institutionName: (institutionName != null
? institutionName.value
: this.institutionName),
accounts: (accounts != null ? accounts.value : this.accounts),
payrollIncome:
(payrollIncome != null ? payrollIncome.value : this.payrollIncome),
status: (status != null ? status.value : this.status),
updatedAt: (updatedAt != null ? updatedAt.value : this.updatedAt));
}