copyWith method
Implementation
LabelledBodyComponentEntity copyWith({
String? documentID,
String? label,
String? componentName,
String? componentId,
}) {
return LabelledBodyComponentEntity(
label: label ?? this.label,
componentName: componentName ?? this.componentName,
componentId: componentId ?? this.componentId,
);
}