copyWith method
Implementation
Category copyWith(
{String? categoryId, String? group, List<String>? hierarchy}) {
return Category(
categoryId: categoryId ?? this.categoryId,
group: group ?? this.group,
hierarchy: hierarchy ?? this.hierarchy);
}