public static string convertSerializedJSON(ProblemCondition condition)
        {
            ProblemConditionJSON conditionJSON = new ProblemConditionJSON();

            conditionJSON.id   = condition.id;
            conditionJSON.name = condition.name;

            var json = new JavaScriptSerializer().Serialize(conditionJSON);

            return(json);
        }
 public ProblemConditionJSON(ProblemCondition condition)
 {
     this.id   = condition.id;
     this.name = condition.name;
 }