MenuEntry.fromJson constructor

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

Implementation

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