InteractiveMarkerControl.fromJson constructor

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

Implementation

factory InteractiveMarkerControl.fromJson(Map<String, Object?> json) =>
    InteractiveMarkerControl(
      name: Field.stringAt(json, 'name'),
      orientation:
          Field.asMessage(json['orientation'], ros2.Quaternion.fromJson),
      orientationMode: Field.intAt(json, 'orientation_mode'),
      interactionMode: Field.intAt(json, 'interaction_mode'),
      alwaysVisible: Field.boolAt(json, 'always_visible'),
      markers: Field.asList<Marker>(json['markers'], Marker.fromJson),
      independentMarkerOrientation:
          Field.boolAt(json, 'independent_marker_orientation'),
      description: Field.stringAt(json, 'description'),
    );