SuperMap.Web.ISDotNET6.ThemeGraduatedSymbol.FromJson C# (CSharp) Méthode

FromJson() public static méthode

${IS6_ThemeGraduatedSymbol_method_FromJson_D}
public static FromJson ( System.Json.JsonObject jsonObject ) : ThemeGraduatedSymbol
jsonObject System.Json.JsonObject ${IS6_ThemeGraduatedSymbol_method_FromJson_param_jsonObject}
Résultat ThemeGraduatedSymbol
        public static ThemeGraduatedSymbol FromJson(JsonObject jsonObject)
        {
            if (jsonObject == null)
            {
                return null;
            }

            return new ThemeGraduatedSymbol
            {
                Caption = (string)jsonObject["caption"],
                Filter = (string)jsonObject["filter"],
                MaxScale = (double)jsonObject["maxScale"],
                MinScale = (double)jsonObject["minScale"],
                ForeignDataParam = ForeignDataParam.FromJson((JsonObject)jsonObject["foreignDataParam"]),

                DefinitionValue = (double)jsonObject["definitionValue"],
                EnableFlow = (bool)jsonObject["enableFlow"],
                Expression = (string)jsonObject["expression"],
                GraduatedMode = (GraduatedMode)(int)jsonObject["graduatedMode"],
                OffsetFixed = (bool)jsonObject["offsetFixed"],
                OffsetXExpression = (string)jsonObject["offsetXExpression"],
                OffsetYExpression = (string)jsonObject["offsetYExpression"],
                OnTop = (bool)jsonObject["onTop"],
                ShowNegative = (bool)jsonObject["showNegative"],
                StyleForNegative = ServerStyle.FromJson((JsonObject)jsonObject["styleForNegative"]),
                StyleForPositive = ServerStyle.FromJson((JsonObject)jsonObject["styleForPositive"]),
            };
        }