InteractiveMarkerUpdate.fromJson constructor

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

Implementation

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