toJson method

  1. @override
Map<String, Object?> toJson()

The rosbridge JSON representation of this message.

Implementation

@override
Map<String, Object?> toJson() => {
      'name': name,
      'orientation': orientation.toJson(),
      'orientation_mode': orientationMode,
      'interaction_mode': interactionMode,
      'always_visible': alwaysVisible,
      'markers': markers.map((Marker e) => e.toJson()).toList(),
      'independent_marker_orientation': independentMarkerOrientation,
      'description': description,
    };