public JSONWrappers.Question ToJSON() { JSONWrappers.Question jsonQuestion = new JSONWrappers.Question { Url = PicturesDataBase.ConvertPathToUrl(Path), Type = Type.ToString("G"), Severity = Severity.ToString("G") }; return(jsonQuestion); }
public static Question FromJSON(JSONWrappers.Question jsonQuestion) { return(new Question(PicturesDataBase.ConvertUrlToPath(jsonQuestion.Url))); }