fromMap static method

MenuModel? fromMap(
  1. WidgetModel parent,
  2. Map<String, String> map
)

Implementation

static MenuModel? fromMap(WidgetModel parent, Map<String, String> map)
{
  MenuModel? model;
  try
  {
    model = MenuModel(parent, S.newId());
    model.unmap(map);
  }
  catch(e)
  {
    Log().exception(e,  caller: 'menu.Model');
    model = null;
  }
  return model;
}