copyWith method
Implementation
MenuDefEntity copyWith({
String? documentID,
String? appId,
String? name,
List<MenuItemEntity>? menuItems,
bool? admin,
}) {
return MenuDefEntity(
appId: appId ?? this.appId,
name: name ?? this.name,
menuItems: menuItems ?? this.menuItems,
admin: admin ?? this.admin,
);
}