MenuButton.fromJson constructor
Creates a new MenuButton object. This method decides which MenuButton
subclass to use based on the type
field.
Implementation
factory MenuButton.fromJson(Map<String, dynamic> json) =>
_$MenuButtonFromJson(json);