MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fromJson

Method fromJson

source/game/StarPlayerUniverseMap.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template <typename T>
28Bookmark<T> Bookmark<T>::fromJson(Json const& json) {
29 Bookmark<T> bookmark;
30 bookmark.target = jsonToBookmarkTarget<T>(json.get("target"));
31 bookmark.targetName = json.getString("targetName");
32 bookmark.bookmarkName = json.getString("bookmarkName");
33 bookmark.icon = json.getString("icon");
34 return bookmark;
35}
36
37template <typename T>
38Json Bookmark<T>::toJson() const {

Callers

nothing calls this directly

Calls 10

CelestialCoordinateClass · 0.85
UuidClass · 0.85
jsonToVec3IFunction · 0.85
getStringMethod · 0.80
getArrayMethod · 0.80
getMethod · 0.45
addMethod · 0.45
getObjectMethod · 0.45
setMethod · 0.45
transformedMethod · 0.45

Tested by

no test coverage detected