copyWithWrapped method

Condition copyWithWrapped({
  1. Wrapped<String>? name,
  2. Wrapped<String?>? description,
  3. Wrapped<String>? deviceModelId,
  4. Wrapped<String?>? icon,
  5. Wrapped<String>? field,
  6. Wrapped<ConditionCondition>? condition,
  7. Wrapped<String?>? value,
  8. Wrapped<String?>? leftValue,
  9. Wrapped<String?>? rightValue,
  10. Wrapped<List<String>?>? values,
  11. Wrapped<String?>? id,
  12. Wrapped<String>? $id,
  13. Wrapped<int?>? cstamp,
  14. Wrapped<String?>? cby,
  15. Wrapped<String?>? uby,
  16. Wrapped<int?>? ustamp,
})

Implementation

Condition copyWithWrapped(
    {Wrapped<String>? name,
    Wrapped<String?>? description,
    Wrapped<String>? deviceModelId,
    Wrapped<String?>? icon,
    Wrapped<String>? field,
    Wrapped<enums.ConditionCondition>? condition,
    Wrapped<String?>? value,
    Wrapped<String?>? leftValue,
    Wrapped<String?>? rightValue,
    Wrapped<List<String>?>? values,
    Wrapped<String?>? id,
    Wrapped<String>? $id,
    Wrapped<int?>? cstamp,
    Wrapped<String?>? cby,
    Wrapped<String?>? uby,
    Wrapped<int?>? ustamp}) {
  return Condition(
      name: (name != null ? name.value : this.name),
      description:
          (description != null ? description.value : this.description),
      deviceModelId:
          (deviceModelId != null ? deviceModelId.value : this.deviceModelId),
      icon: (icon != null ? icon.value : this.icon),
      field: (field != null ? field.value : this.field),
      condition: (condition != null ? condition.value : this.condition),
      value: (value != null ? value.value : this.value),
      leftValue: (leftValue != null ? leftValue.value : this.leftValue),
      rightValue: (rightValue != null ? rightValue.value : this.rightValue),
      values: (values != null ? values.value : this.values),
      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));
}