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,
  8. Wrapped<Map<String, dynamic>?>? tagToOutcomeIdMap,
})

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,
    Wrapped<Map<String, dynamic>?>? tagToOutcomeIdMap}) {
  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),
      tagToOutcomeIdMap: (tagToOutcomeIdMap != null
          ? tagToOutcomeIdMap.value
          : this.tagToOutcomeIdMap));
}