copyWithWrapped method

OnceEventV3Body copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<DateTime?>? timestamp,
  3. Wrapped<OnceEventType?>? eventType,
  4. Wrapped<OnceEventSeverity?>? eventSeverity,
  5. Wrapped<OnceEventSource?>? eventSource,
  6. Wrapped<OnceOrganisation?>? organisation,
  7. Wrapped<bool?>? alert,
  8. Wrapped<String?>? description,
  9. Wrapped<OnceSim?>? sim,
})

Implementation

OnceEventV3Body copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<DateTime?>? timestamp,
    Wrapped<OnceEventType?>? eventType,
    Wrapped<OnceEventSeverity?>? eventSeverity,
    Wrapped<OnceEventSource?>? eventSource,
    Wrapped<OnceOrganisation?>? organisation,
    Wrapped<bool?>? alert,
    Wrapped<String?>? description,
    Wrapped<OnceSim?>? sim}) {
  return OnceEventV3Body(
      id: (id != null ? id.value : this.id),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      eventType: (eventType != null ? eventType.value : this.eventType),
      eventSeverity:
          (eventSeverity != null ? eventSeverity.value : this.eventSeverity),
      eventSource:
          (eventSource != null ? eventSource.value : this.eventSource),
      organisation:
          (organisation != null ? organisation.value : this.organisation),
      alert: (alert != null ? alert.value : this.alert),
      description:
          (description != null ? description.value : this.description),
      sim: (sim != null ? sim.value : this.sim));
}