SuperMap.Web.iServerJava6R.NetworkAnalyst.NAResultMapParameter.FromJson C# (CSharp) Method

FromJson() public static method

${iServerJava6R_NAResultMapParameter_method_FromJson_D}
public static FromJson ( System.Json.JsonObject json ) : NAResultMapParameter
json System.Json.JsonObject ${iServerJava6R_NAResultMapParameter_method_FromJson_param_jsonObject}
return NAResultMapParameter
        public static NAResultMapParameter FromJson(JsonObject json)
        {
            if (json == null)
                return null;

            NAResultMapParameter result = new NAResultMapParameter();
            result.BackgroundTransparent = (bool)json["backgroundTransparent"];
            result.Bounds = JsonHelper.ToRectangle2D((JsonObject)json["bounds"]);
            result.Center = JsonHelper.ToPoint2D((JsonObject)json["center"]);
            result.Format = (OutputFormat)Enum.Parse(typeof(OutputFormat), (string)json["format"], true);
            result.Scale = (double)json["scale"];
            result.Style = ServerStyle.FromJson((JsonObject)json["style"]);
            result.UseDefaultParameter = (bool)json["useDefaultParameter"];
            result.Viewer = JsonHelper.ToRect((JsonObject)json["viewer"]);

            return result;
        }