MCPcopy Create free account
hub / github.com/antvis/F2Native / GetBool

Function GetBool

core/graphics/util/json.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97const bool GetBool(const nlohmann::json &obj, const std::string &key, const bool defVal) {
98 if(obj.is_object() && obj.contains(key) && obj[key].is_boolean()) {
99 return obj[key].get<bool>();
100 } else {
101 return defVal;
102 }
103}
104
105const nlohmann::json &GetObject(const nlohmann::json &obj, const std::string &key, const nlohmann::json &defVal) {
106 if(obj.is_object() && obj.contains(key) && obj[key].is_object()) {

Callers 12

SetEnableListConfigMethod · 0.85
SetXTipContentMethod · 0.85
SetYTipContentMethod · 0.85
CartesianMethod · 0.85
RenderMethod · 0.85
GetDirectMethod · 0.85
InitAxisMethod · 0.85
DrawLabelMethod · 0.85
BeforeMappingMethod · 0.85
GetSelectedRecordsMethod · 0.85
DrawMethod · 0.85
GetBoolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected