copyWithWrapped method

DailyReadinessModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<ReadinessContributors>? contributors,
  3. Wrapped<DateTime>? day,
  4. Wrapped? score,
  5. Wrapped? temperatureDeviation,
  6. Wrapped? temperatureTrendDeviation,
  7. Wrapped<String>? timestamp,
})

Implementation

DailyReadinessModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<ReadinessContributors>? contributors,
    Wrapped<DateTime>? day,
    Wrapped<dynamic>? score,
    Wrapped<dynamic>? temperatureDeviation,
    Wrapped<dynamic>? temperatureTrendDeviation,
    Wrapped<String>? timestamp}) {
  return DailyReadinessModel(
      id: (id != null ? id.value : this.id),
      contributors:
          (contributors != null ? contributors.value : this.contributors),
      day: (day != null ? day.value : this.day),
      score: (score != null ? score.value : this.score),
      temperatureDeviation: (temperatureDeviation != null
          ? temperatureDeviation.value
          : this.temperatureDeviation),
      temperatureTrendDeviation: (temperatureTrendDeviation != null
          ? temperatureTrendDeviation.value
          : this.temperatureTrendDeviation),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp));
}