toJson method

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

The rosbridge JSON representation of this message.

Implementation

@override
Map<String, Object?> toJson() => {
      'server_id': serverId,
      'seq_num': seqNum,
      'type': type,
      'markers': markers.map((InteractiveMarker e) => e.toJson()).toList(),
      'poses': poses.map((InteractiveMarkerPose e) => e.toJson()).toList(),
      'erases': erases,
    };