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