MenuButton.fromJson constructor

MenuButton.fromJson(
  1. Map<String, dynamic> json
)

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);