InteractiveMarkerControl.fromJson constructor

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

Implementation

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