${iServerJava6R_TransferLine_Title}

        /// <summary>${iServerJava6R_TransferLine_method_FromJson_D}</summary>
        /// <param name="json">${iServerJava6R_TransferLine_method_FromJson_param_jsonObject}</param>
        public static TransferLine FromJson(JsonObject json)
        {
            if (json == null)
            {
                return null;
            }

            TransferLine line = new TransferLine();
            line.EndStopIndex = (int)json["endStopIndex"];
            line.EndStopName = json["endStopName"];
            line.LineID = (int)json["lineID"];
            line.LineName = json["lineName"];
            line.StartStopIndex = (int)json["startStopIndex"];
            line.StartStopName = json["startStopName"];

            return line;
        }
 internal static string ToJson(TransferLine line)
 {
     if (line == null)
     {
         return null;
     }
     List<string> list = new List<string>();
     list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"{0}\":{1}", "endStopIndex", line.EndStopIndex));
     if (!string.IsNullOrEmpty(line.EndStopName))
     {
         list.Add(string.Format("\"{0}\":\"{1}\"", "endStopName", line.EndStopName));
     }
     list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"{0}\":{1}", "lineID", line.LineID));
     if (!string.IsNullOrEmpty(line.LineName))
     {
         list.Add(string.Format("\"{0}\":\"{1}\"", "lineName", line.LineName));
     }
     list.Add(string.Format(System.Globalization.CultureInfo.InvariantCulture, "\"{0}\":{1}", "startStopIndex", line.StartStopIndex));
     if (!string.IsNullOrEmpty(line.StartStopName))
     {
         list.Add(string.Format("\"{0}\":\"{1}\"", "startStopName", line.StartStopName));
     }
     return "{" + string.Join(",", list) + "}";
 }
        private System.Collections.Generic.Dictionary<string, string> GetDictionaryParameters(FindTransferPathParameter parameters)
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();

            string jsonPoints = "[";
            List<string> jsonL = new List<string>();
            if(parameters.Points.GetType()==typeof(Point2D[]))
            {
                Point2D[] points = parameters.Points as Point2D[];
                for (int i = 0; i < points.Length; i++)
                {
                    jsonL.Add(JsonHelper.FromPoint2D(points[i]));
                }
            }
            else if (parameters.Points.GetType() == typeof(long[]))
            {
                long[] points = parameters.Points as long[];
                for (int i = 0; i < points.Length; i++)
                {
                    jsonL.Add(points[i].ToString(System.Globalization.CultureInfo.InvariantCulture));
                }
            }

            jsonPoints += string.Join(",", jsonL);
            jsonPoints += "]";

            dic["points"] = jsonPoints;
            TransferLine[] lines = new TransferLine[parameters.TransferLines.Length];
            for (int i = 0; i < parameters.TransferLines.Length; i++)
            {
                lines[i] = new TransferLine();
                lines[i].EndStopIndex = parameters.TransferLines[i].EndStopIndex;
                lines[i].LineID = parameters.TransferLines[i].LineID;
                lines[i].StartStopIndex = parameters.TransferLines[i].StartStopIndex;
            }

            string jsonLines = "[";
            List<string> lJsonLine = new List<string>();
            foreach (TransferLine line in lines)
            {
                lJsonLine.Add(TransferLine.ToJson(line));
            }
            jsonLines += string.Join(",", lJsonLine);
            jsonLines += "]";
            dic["transferLines"] = jsonLines;
            return dic;
        }