/// <summary> /// Line /// </summary> public static MapElement.RouteLine Line(string str) { MapElement.RouteLine routeLine = new MapElement.RouteLine(); //json 转为对象 routeLine = JsonConvert.DeserializeObject <MapElement.RouteLine>(str); //将Base转为标准对象 BaseToStandard.Line(routeLine); return(routeLine); }
public static List <MapElement.RouteLine> LineList(string str) { List <MapElement.RouteLine> routeLines = new List <MapElement.RouteLine>(); //json 转为对象 routeLines = JsonConvert.DeserializeObject <List <MapElement.RouteLine> >(str); //将Base转为标准对象 BaseToStandard.Line(routeLines); return(routeLines); }