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

FromJson() public static method

${iServer2_ThemeResult_method_FromJson_D}
public static FromJson ( JsonPrimitive jsonPrimitive ) : ThemeResult
jsonPrimitive System.Json.JsonPrimitive ${iServer2_ThemeResult_method_FromJson_param_jsonObject}
return ThemeResult
        public static ThemeResult FromJson(JsonPrimitive jsonPrimitive)
        {
            if (jsonPrimitive == null)
            {
                return null;
            }

            string str = jsonPrimitive;
            ThemeResult result = new ThemeResult();
            result.Name = str.Substring(0, str.IndexOf(","));
            result.Key = str.Substring(str.IndexOf(",") + 1, str.Length - str.IndexOf(",") - 1);
            return result;
        }