copyWithWrapped method

NotificationHistoryInsertV3Body copyWithWrapped({
  1. Wrapped<NotificationTypeDTO?>? type,
  2. Wrapped<String?>? message,
  3. Wrapped<String?>? serialNumber,
  4. Wrapped<String?>? url,
  5. Wrapped<PlatformDTO?>? devicePlatform,
  6. Wrapped<DateTime?>? dateCreated,
  7. Wrapped<List<String>?>? tags,
})

Implementation

NotificationHistoryInsertV3Body copyWithWrapped(
    {Wrapped<enums.NotificationTypeDTO?>? type,
    Wrapped<String?>? message,
    Wrapped<String?>? serialNumber,
    Wrapped<String?>? url,
    Wrapped<enums.PlatformDTO?>? devicePlatform,
    Wrapped<DateTime?>? dateCreated,
    Wrapped<List<String>?>? tags}) {
  return NotificationHistoryInsertV3Body(
      type: (type != null ? type.value : this.type),
      message: (message != null ? message.value : this.message),
      serialNumber:
          (serialNumber != null ? serialNumber.value : this.serialNumber),
      url: (url != null ? url.value : this.url),
      devicePlatform: (devicePlatform != null
          ? devicePlatform.value
          : this.devicePlatform),
      dateCreated:
          (dateCreated != null ? dateCreated.value : this.dateCreated),
      tags: (tags != null ? tags.value : this.tags));
}