copyWith method
Implementation
EarningsTotal copyWith(
{double? currentAmount,
Pay? currentPay,
Pay? ytdPay,
double? hours,
String? isoCurrencyCode,
String? unofficialCurrencyCode,
double? ytdAmount}) {
return EarningsTotal(
currentAmount: currentAmount ?? this.currentAmount,
currentPay: currentPay ?? this.currentPay,
ytdPay: ytdPay ?? this.ytdPay,
hours: hours ?? this.hours,
isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
unofficialCurrencyCode:
unofficialCurrencyCode ?? this.unofficialCurrencyCode,
ytdAmount: ytdAmount ?? this.ytdAmount);
}