copyWith method

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

Implementation

NotificationHistoryInsertV3Body copyWith(
    {enums.NotificationTypeDTO? type,
    String? message,
    String? serialNumber,
    String? url,
    enums.PlatformDTO? devicePlatform,
    DateTime? dateCreated,
    List<String>? tags}) {
  return NotificationHistoryInsertV3Body(
      type: type ?? this.type,
      message: message ?? this.message,
      serialNumber: serialNumber ?? this.serialNumber,
      url: url ?? this.url,
      devicePlatform: devicePlatform ?? this.devicePlatform,
      dateCreated: dateCreated ?? this.dateCreated,
      tags: tags ?? this.tags);
}