copyWith method
Implementation
ServiceDto copyWith({
String? name,
List<InstanceDto>? instances,
}) {
return ServiceDto(
name ?? this.name,
instances ?? this.instances,
);
}
ServiceDto copyWith({
String? name,
List<InstanceDto>? instances,
}) {
return ServiceDto(
name ?? this.name,
instances ?? this.instances,
);
}