copyWith method
Implementation
PayStubPayPeriodDetails copyWith(
{double? payAmount,
List<PayStubDistributionBreakdown>? distributionBreakdown,
DateTime? endDate,
double? grossEarnings,
String? isoCurrencyCode,
DateTime? payDate,
String? payFrequency,
DateTime? startDate,
String? unofficialCurrencyCode}) {
return PayStubPayPeriodDetails(
payAmount: payAmount ?? this.payAmount,
distributionBreakdown:
distributionBreakdown ?? this.distributionBreakdown,
endDate: endDate ?? this.endDate,
grossEarnings: grossEarnings ?? this.grossEarnings,
isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
payDate: payDate ?? this.payDate,
payFrequency: payFrequency ?? this.payFrequency,
startDate: startDate ?? this.startDate,
unofficialCurrencyCode:
unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}