SuperMap.Web.iServerJava6R.ThemeResult.FromJson C# (CSharp) Method

FromJson() public static method

${iServerJava6R_ThemeResult_method_FromJson_D}
public static FromJson ( string jsonResult ) : ThemeResult
jsonResult string ${iServerJava6R_ThemeResult_method_FromJson_param_jsonObject}
return ThemeResult
        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;
        }