InteractiveMarker.fromJson constructor

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

Implementation

factory InteractiveMarker.fromJson(Map<String, Object?> json) =>
    InteractiveMarker(
      header: Field.asMessage(json['header'], ros2.Header.fromJson),
      pose: Field.asMessage(json['pose'], ros2.Pose.fromJson),
      name: Field.stringAt(json, 'name'),
      description: Field.stringAt(json, 'description'),
      scale: Field.doubleAt(json, 'scale'),
      menuEntries:
          Field.asList<MenuEntry>(json['menu_entries'], MenuEntry.fromJson),
      controls: Field.asList<InteractiveMarkerControl>(
          json['controls'], InteractiveMarkerControl.fromJson),
    );