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

FromJson() public static method

${iServerJava6R_NAResultMapImage_method_fromJson_D}
public static FromJson ( System.Json.JsonObject json ) : NAResultMapImage
json System.Json.JsonObject ${iServerJava6R_NAResultMapImage_method_fromJson_param_jsonObject}
return NAResultMapImage
        public static NAResultMapImage FromJson(JsonObject json)
        {
            if (json != null)
            {
                NAResultMapImage result = new NAResultMapImage();
                result.ImageURL = (string)json["imageURL"];
                result.MapParameter = NAResultMapParameter.FromJson((JsonObject)json["mapParameter"]);
                if (json["imageData"] != null)
                {
                    result.ImageData = new List<byte>();
                    for (int i = 0; i < json["imageData"].Count; i++)
                    {
                        result.ImageData.Add((byte)json["imageData"][i]);
                    }
                }
                return result;
            }

            return null;
        }