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

FromJson() public static method

${iServerJava6R_FindPathResult_method_fromJson_D}
public static FromJson ( System.Json.JsonObject json ) : FindPathResult
json System.Json.JsonObject ${iServerJava6R_FindPathResult_method_fromJson_param_jsonObject}
return FindPathResult
        public static FindPathResult FromJson(JsonObject json)
        {
            if (json == null)
                return null;

            FindPathResult result = new FindPathResult();

               // result.MapImage = NAResultMapImage.FromJson((JsonObject)json["mapImage"]);
            if (json["pathList"] != null)
            {
                result.PathList = new List<ServerPath>();
                for (int i = 0; i < json["pathList"].Count; i++)
                {
                    result.PathList.Add(ServerPath.ServerPathFromJson((JsonObject)json["pathList"][i]));
                }
            }

            return result;
        }