| 138 | } |
| 139 | |
| 140 | RouteMarkData DeserializeRoutePoint(json_t * node) |
| 141 | { |
| 142 | ASSERT(node != nullptr, ()); |
| 143 | RouteMarkData data; |
| 144 | |
| 145 | int type = 0; |
| 146 | FromJSONObject(node, "type", type); |
| 147 | data.m_pointType = static_cast<RouteMarkType>(type); |
| 148 | |
| 149 | FromJSONObject(node, "title", data.m_title); |
| 150 | FromJSONObject(node, "subtitle", data.m_subTitle); |
| 151 | |
| 152 | FromJSONObject(node, "x", data.m_position.x); |
| 153 | FromJSONObject(node, "y", data.m_position.y); |
| 154 | |
| 155 | FromJSONObject(node, "replaceWithMyPosition", data.m_replaceWithMyPositionAfterRestart); |
| 156 | |
| 157 | return data; |
| 158 | } |
| 159 | |
| 160 | string SerializeRoutePoints(vector<RouteMarkData> const & points) |
| 161 | { |
no test coverage detected