InteractiveMarker.fromJson constructor
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.asString(json['name']),
description: Field.asString(json['description']),
scale: Field.asDouble(json['scale']),
menuEntries:
Field.asList<MenuEntry>(json['menu_entries'], MenuEntry.fromJson),
controls: Field.asList<InteractiveMarkerControl>(
json['controls'], InteractiveMarkerControl.fromJson),
);