copyWithWrapped method

GeneratorDetailResponseModel copyWithWrapped({
  1. Wrapped<int?>? parametercount,
  2. Wrapped<List<ParameterResponseModel>?>? parameters,
  3. Wrapped<int?>? activealertcount,
  4. Wrapped<List<ActiveAlertResponseModel>?>? activealerts,
  5. Wrapped<int?>? eventcount,
  6. Wrapped<List<EventResponseModel>?>? events,
})

Implementation

GeneratorDetailResponseModel copyWithWrapped(
    {Wrapped<int?>? parametercount,
    Wrapped<List<ParameterResponseModel>?>? parameters,
    Wrapped<int?>? activealertcount,
    Wrapped<List<ActiveAlertResponseModel>?>? activealerts,
    Wrapped<int?>? eventcount,
    Wrapped<List<EventResponseModel>?>? events}) {
  return GeneratorDetailResponseModel(
      parametercount: (parametercount != null
          ? parametercount.value
          : this.parametercount),
      parameters: (parameters != null ? parameters.value : this.parameters),
      activealertcount: (activealertcount != null
          ? activealertcount.value
          : this.activealertcount),
      activealerts:
          (activealerts != null ? activealerts.value : this.activealerts),
      eventcount: (eventcount != null ? eventcount.value : this.eventcount),
      events: (events != null ? events.value : this.events));
}