SuperMap.Web.iServerJava6R.ThemeOffset.FromJson C# (CSharp) Méthode

FromJson() static private méthode

static private FromJson ( System.Json.JsonObject json ) : ThemeOffset
json System.Json.JsonObject
Résultat ThemeOffset
        internal static ThemeOffset FromJson(JsonObject json)
        {
            if (json == null)
                return null;
            ThemeOffset themeOffset = new ThemeOffset();
            themeOffset.OffsetFixed = (bool)json["offsetFixed"];
            themeOffset.OffsetX = (string)json["offsetX"];
            themeOffset.OffsetY = (string)json["offsetY"];
            return themeOffset;
        }