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

FromJson() static private méthode

static private FromJson ( System.Json.JsonObject json ) : Spheroid
json System.Json.JsonObject
Résultat Spheroid
        internal static Spheroid FromJson(JsonObject json)
        {
            if (json == null)
            {
                return null;
            }

            return new Spheroid
            {
                Axis = (double)json["axis"],
                Flatten = (double)json["flatten"],
                Name = (string)json["name"],
                Type = (SpheroidType)Enum.Parse(typeof(SpheroidType),
                (string)json["type"], true)
            };
        }