copyWithWrapped method

Alarm copyWithWrapped({
  1. Wrapped<String>? name,
  2. Wrapped<String?>? description,
  3. Wrapped<String>? deviceModelId,
  4. Wrapped<String>? activeIcon,
  5. Wrapped<String>? inactiveIcon,
  6. Wrapped<List<MatchGroup>>? conditions,
  7. Wrapped<String?>? id,
  8. Wrapped<String>? $id,
  9. Wrapped<int?>? cstamp,
  10. Wrapped<String?>? cby,
  11. Wrapped<String?>? uby,
  12. Wrapped<int?>? ustamp,
})

Implementation

Alarm copyWithWrapped(
    {Wrapped<String>? name,
    Wrapped<String?>? description,
    Wrapped<String>? deviceModelId,
    Wrapped<String>? activeIcon,
    Wrapped<String>? inactiveIcon,
    Wrapped<List<MatchGroup>>? conditions,
    Wrapped<String?>? id,
    Wrapped<String>? $id,
    Wrapped<int?>? cstamp,
    Wrapped<String?>? cby,
    Wrapped<String?>? uby,
    Wrapped<int?>? ustamp}) {
  return Alarm(
      name: (name != null ? name.value : this.name),
      description:
          (description != null ? description.value : this.description),
      deviceModelId:
          (deviceModelId != null ? deviceModelId.value : this.deviceModelId),
      activeIcon: (activeIcon != null ? activeIcon.value : this.activeIcon),
      inactiveIcon:
          (inactiveIcon != null ? inactiveIcon.value : this.inactiveIcon),
      conditions: (conditions != null ? conditions.value : this.conditions),
      id: (id != null ? id.value : this.id),
      $id: ($id != null ? $id.value : this.$id),
      cstamp: (cstamp != null ? cstamp.value : this.cstamp),
      cby: (cby != null ? cby.value : this.cby),
      uby: (uby != null ? uby.value : this.uby),
      ustamp: (ustamp != null ? ustamp.value : this.ustamp));
}