InteractiveMarkerUpdate.fromJson constructor

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

Implementation

factory InteractiveMarkerUpdate.fromJson(Map<String, Object?> json) =>
    InteractiveMarkerUpdate(
      serverId: Field.stringAt(json, 'server_id'),
      seqNum: Field.intAt(json, 'seq_num'),
      type: Field.intAt(json, 'type'),
      markers: Field.asList<InteractiveMarker>(
          json['markers'], InteractiveMarker.fromJson),
      poses: Field.asList<InteractiveMarkerPose>(
          json['poses'], InteractiveMarkerPose.fromJson),
      erases: Field.asStringList(json['erases']),
    );