deepCopy static method
Implementation
static DrawerModel deepCopy(
String appID, DrawerType drawerType, DrawerModel from) {
var documentID = drawerID(appID, drawerType);
var iconMenu = copyOrDefault(appID, documentID, from.menu);
var copyOfDrawerModel = from.copyWith(
documentID: documentID, menu: iconMenu, headerText: from.headerText);
return copyOfDrawerModel;
}