MCPcopy Create free account
hub / github.com/MITK/MITK / to_json

Method to_json

Modules/Forms/src/mitkQuestion.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void mitk::Forms::to_json(ordered_json& j, const Question& q)
71{
72 j["Text"] = q.GetQuestionText();
73
74 if (q.IsRequired())
75 j["Required"] = true;
76
77 j["Type"] = q.GetType();
78}

Callers

nothing calls this directly

Calls 3

GetQuestionTextMethod · 0.80
IsRequiredMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected