copyWithWrapped method
Implementation
SessionModel copyWithWrapped(
{Wrapped<String>? id,
Wrapped<DateTime>? day,
Wrapped<String>? startDatetime,
Wrapped<String>? endDatetime,
Wrapped<enums.MomentType>? type,
Wrapped<dynamic>? heartRate,
Wrapped<dynamic>? heartRateVariability,
Wrapped<dynamic>? mood,
Wrapped<dynamic>? motionCount}) {
return SessionModel(
id: (id != null ? id.value : this.id),
day: (day != null ? day.value : this.day),
startDatetime:
(startDatetime != null ? startDatetime.value : this.startDatetime),
endDatetime:
(endDatetime != null ? endDatetime.value : this.endDatetime),
type: (type != null ? type.value : this.type),
heartRate: (heartRate != null ? heartRate.value : this.heartRate),
heartRateVariability: (heartRateVariability != null
? heartRateVariability.value
: this.heartRateVariability),
mood: (mood != null ? mood.value : this.mood),
motionCount:
(motionCount != null ? motionCount.value : this.motionCount));
}