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

FromJson() public static method

${iServerJava6R_NAResultMapParameter_method_FromJson_D}
public static FromJson ( JsonObject json ) : NAResultMapParameter
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 = json["backgroundTransparent"].GetBooleanEx();
            result.Bounds = JsonHelper.ToRectangle2D(json["bounds"].GetObjectEx());
            result.Center = JsonHelper.ToPoint2D(json["center"].GetObjectEx());
            result.Format = (OutputFormat)Enum.Parse(typeof(OutputFormat), json["format"].GetStringEx(), true);
            result.Scale = json["scale"].GetNumberEx();
            result.Style = ServerStyle.FromJson(json["style"].GetObjectEx());
            result.UseDefaultParameter = json["useDefaultParameter"].GetBooleanEx();
            result.Viewer = JsonHelper.ToRect(json["viewer"].GetObjectEx());

            return result;
        }
    }