copyWith method
PayrollItem
copyWith({
- String? itemId,
- String? institutionId,
- String? institutionName,
- List<
PayrollIncomeAccountData> ? accounts, - List<
PayrollIncomeObject> ? payrollIncome, - PayrollItemStatus? status,
- DateTime? updatedAt,
Implementation
PayrollItem copyWith(
{String? itemId,
String? institutionId,
String? institutionName,
List<PayrollIncomeAccountData>? accounts,
List<PayrollIncomeObject>? payrollIncome,
PayrollItemStatus? status,
DateTime? updatedAt}) {
return PayrollItem(
itemId: itemId ?? this.itemId,
institutionId: institutionId ?? this.institutionId,
institutionName: institutionName ?? this.institutionName,
accounts: accounts ?? this.accounts,
payrollIncome: payrollIncome ?? this.payrollIncome,
status: status ?? this.status,
updatedAt: updatedAt ?? this.updatedAt);
}