copyWithWrapped method

EnhancedTagModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped? tagTypeCode,
  3. Wrapped<String>? startTime,
  4. Wrapped? endTime,
  5. Wrapped<DateTime>? startDay,
  6. Wrapped? endDay,
  7. Wrapped? comment,
  8. Wrapped? customName,
})

Implementation

EnhancedTagModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<dynamic>? tagTypeCode,
    Wrapped<String>? startTime,
    Wrapped<dynamic>? endTime,
    Wrapped<DateTime>? startDay,
    Wrapped<dynamic>? endDay,
    Wrapped<dynamic>? comment,
    Wrapped<dynamic>? customName}) {
  return EnhancedTagModel(
      id: (id != null ? id.value : this.id),
      tagTypeCode:
          (tagTypeCode != null ? tagTypeCode.value : this.tagTypeCode),
      startTime: (startTime != null ? startTime.value : this.startTime),
      endTime: (endTime != null ? endTime.value : this.endTime),
      startDay: (startDay != null ? startDay.value : this.startDay),
      endDay: (endDay != null ? endDay.value : this.endDay),
      comment: (comment != null ? comment.value : this.comment),
      customName: (customName != null ? customName.value : this.customName));
}