| 127 | } |
| 128 | |
| 129 | void SerializeRoutePoint(json_t * node, RouteMarkData const & data) |
| 130 | { |
| 131 | ASSERT(node != nullptr, ()); |
| 132 | ToJSONObject(*node, "type", static_cast<int>(data.m_pointType)); |
| 133 | ToJSONObject(*node, "title", data.m_title); |
| 134 | ToJSONObject(*node, "subtitle", data.m_subTitle); |
| 135 | ToJSONObject(*node, "x", data.m_position.x); |
| 136 | ToJSONObject(*node, "y", data.m_position.y); |
| 137 | ToJSONObject(*node, "replaceWithMyPosition", data.m_replaceWithMyPositionAfterRestart); |
| 138 | } |
| 139 | |
| 140 | RouteMarkData DeserializeRoutePoint(json_t * node) |
| 141 | { |
no test coverage detected