deepCopy static method

HomeMenuModel deepCopy(
  1. String appID,
  2. HomeMenuModel from
)

Implementation

static HomeMenuModel deepCopy(String appID, HomeMenuModel from) {
  var documentID = homeMenuID(appID);
  var iconMenu = copyOrDefault(appID, documentID, from.menu);
  var copyOfBottomNavBarModel =
      from.copyWith(documentID: documentID, menu: iconMenu);
  return copyOfBottomNavBarModel;
}