copyWith method
Implementation
HeartbeatEventDto copyWith({
String? serviceName,
String? serviceInstance,
DateTime? timestamp,
}) {
return HeartbeatEventDto(
serviceName: serviceName ?? this.serviceName,
serviceInstance: serviceInstance ?? this.serviceInstance,
timestamp: timestamp ?? this.timestamp,
);
}