copyWith method
Implementation
NotificationDTO copyWith(
{int? id,
String? tag,
enums.NotificationTypeDTO? type,
String? message,
DateTime? timestamp,
int? deviceId,
String? serialNumber,
String? displayName}) {
return NotificationDTO(
id: id ?? this.id,
tag: tag ?? this.tag,
type: type ?? this.type,
message: message ?? this.message,
timestamp: timestamp ?? this.timestamp,
deviceId: deviceId ?? this.deviceId,
serialNumber: serialNumber ?? this.serialNumber,
displayName: displayName ?? this.displayName);
}