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