copyWithWrapped method

HubParameterDefinition copyWithWrapped({
  1. Wrapped<int?>? parameterId,
  2. Wrapped<String?>? name,
  3. Wrapped<int?>? subgroupId,
  4. Wrapped<CborDataType?>? dataType,
  5. Wrapped<int?>? enumId,
  6. Wrapped<AccessLevel?>? homeownerAccess,
  7. Wrapped<AccessLevel?>? dealerAccess,
  8. Wrapped<double?>? defaultValue,
  9. Wrapped<double?>? minValue,
  10. Wrapped<double?>? maxValue,
  11. Wrapped<String?>? unit,
  12. Wrapped<double?>? changeStep,
  13. Wrapped? filteringThreshold,
})

Implementation

HubParameterDefinition copyWithWrapped(
    {Wrapped<int?>? parameterId,
    Wrapped<String?>? name,
    Wrapped<int?>? subgroupId,
    Wrapped<enums.CborDataType?>? dataType,
    Wrapped<int?>? enumId,
    Wrapped<enums.AccessLevel?>? homeownerAccess,
    Wrapped<enums.AccessLevel?>? dealerAccess,
    Wrapped<double?>? defaultValue,
    Wrapped<double?>? minValue,
    Wrapped<double?>? maxValue,
    Wrapped<String?>? unit,
    Wrapped<double?>? changeStep,
    Wrapped<dynamic>? filteringThreshold}) {
  return HubParameterDefinition(
      parameterId:
          (parameterId != null ? parameterId.value : this.parameterId),
      name: (name != null ? name.value : this.name),
      subgroupId: (subgroupId != null ? subgroupId.value : this.subgroupId),
      dataType: (dataType != null ? dataType.value : this.dataType),
      enumId: (enumId != null ? enumId.value : this.enumId),
      homeownerAccess: (homeownerAccess != null
          ? homeownerAccess.value
          : this.homeownerAccess),
      dealerAccess:
          (dealerAccess != null ? dealerAccess.value : this.dealerAccess),
      defaultValue:
          (defaultValue != null ? defaultValue.value : this.defaultValue),
      minValue: (minValue != null ? minValue.value : this.minValue),
      maxValue: (maxValue != null ? maxValue.value : this.maxValue),
      unit: (unit != null ? unit.value : this.unit),
      changeStep: (changeStep != null ? changeStep.value : this.changeStep),
      filteringThreshold: (filteringThreshold != null
          ? filteringThreshold.value
          : this.filteringThreshold));
}