copyWithWrapped method

PayStubPayPeriodDetails copyWithWrapped({
  1. Wrapped<double?>? payAmount,
  2. Wrapped<List<PayStubDistributionBreakdown>>? distributionBreakdown,
  3. Wrapped<DateTime?>? endDate,
  4. Wrapped<double?>? grossEarnings,
  5. Wrapped<String?>? isoCurrencyCode,
  6. Wrapped<DateTime?>? payDate,
  7. Wrapped<String?>? payFrequency,
  8. Wrapped<DateTime?>? startDate,
  9. Wrapped<String?>? unofficialCurrencyCode,
})

Implementation

PayStubPayPeriodDetails copyWithWrapped(
    {Wrapped<double?>? payAmount,
    Wrapped<List<PayStubDistributionBreakdown>>? distributionBreakdown,
    Wrapped<DateTime?>? endDate,
    Wrapped<double?>? grossEarnings,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<DateTime?>? payDate,
    Wrapped<String?>? payFrequency,
    Wrapped<DateTime?>? startDate,
    Wrapped<String?>? unofficialCurrencyCode}) {
  return PayStubPayPeriodDetails(
      payAmount: (payAmount != null ? payAmount.value : this.payAmount),
      distributionBreakdown: (distributionBreakdown != null
          ? distributionBreakdown.value
          : this.distributionBreakdown),
      endDate: (endDate != null ? endDate.value : this.endDate),
      grossEarnings:
          (grossEarnings != null ? grossEarnings.value : this.grossEarnings),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      payDate: (payDate != null ? payDate.value : this.payDate),
      payFrequency:
          (payFrequency != null ? payFrequency.value : this.payFrequency),
      startDate: (startDate != null ? startDate.value : this.startDate),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode));
}