WriteChoice static method

dynamic WriteChoice(
  1. SimpleJsonWriter writer,
  2. Choice choice
)

Implementation

static WriteChoice(SimpleJsonWriter writer, Choice choice) {
  writer.WriteObjectStart();
  writer.WriteProperty("text", choice.text);
  writer.WriteIntProperty("index", choice.index);
  writer.WriteProperty("originalChoicePath", choice.sourcePath);
  writer.WriteIntProperty("originalThreadIndex", choice.originalThreadIndex);
  writer.WriteProperty("targetPath", choice.pathStringOnChoice);
  writer.WriteObjectEnd();
}