deepCopy static method

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

Implementation

static AppModel deepCopy(String appID, AppModel from) {
  var homePages = from.homePages ?? AppHomePageReferencesModel();
  var copyOfAppModel = from.copyWith(
      documentID: appID, homePages: homePages, title: from.title);
  return copyOfAppModel;
}