JObjectToChoice static method

dynamic JObjectToChoice(
  1. Map<String, dynamic> jObj
)

Implementation

static JObjectToChoice(Map<String, dynamic> jObj) {
  var choice = Choice();
  choice.text = jObj["text"].toString();
  choice.index = jObj["index"] as int;
  choice.sourcePath = jObj["originalChoicePath"].toString();
  choice.originalThreadIndex = jObj["originalThreadIndex"] as int;
  choice.pathStringOnChoice = jObj["targetPath"].toString();
  return choice;
}