MenuEntry.fromJson constructor

MenuEntry.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory MenuEntry.fromJson(Map<String, Object?> json) => MenuEntry(
      id: Field.intAt(json, 'id'),
      parentId: Field.intAt(json, 'parent_id'),
      title: Field.stringAt(json, 'title'),
      command: Field.stringAt(json, 'command'),
      commandType: Field.intAt(json, 'command_type'),
    );