copyWithWrapped method

DailySleepModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<SleepContributors>? contributors,
  3. Wrapped<DateTime>? day,
  4. Wrapped? score,
  5. Wrapped<String>? timestamp,
})

Implementation

DailySleepModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<SleepContributors>? contributors,
    Wrapped<DateTime>? day,
    Wrapped<dynamic>? score,
    Wrapped<String>? timestamp}) {
  return DailySleepModel(
      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),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp));
}