public static ThemeResult FromJson(string jsonResult)
{
JsonObject resultObject = (JsonObject)JsonValue.Parse(jsonResult);
ResourceInfo resourceInfo = new ResourceInfo
{
NewResourceID = resultObject["newResourceID"],
NewResourceLocation = resultObject["newResourceLocation"],
Succeed = (bool)resultObject["succeed"]
};
ThemeResult themeResult = new ThemeResult
{
ResourceInfo = resourceInfo
};
return themeResult;
}