copyWith method

HeartbeatEventDto copyWith({
  1. String? serviceName,
  2. String? serviceInstance,
  3. DateTime? timestamp,
})

Implementation

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