MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / as

Method as

src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18template <typename TDerived>
19template <typename T>
20inline T VariantRefBase<TDerived>::as() const {
21 using variant_type = // JsonVariantConst or JsonVariant?
22 typename function_traits<decltype(&Converter<T>::fromJson)>::arg1_type;
23 return Converter<T>::fromJson(getVariant<variant_type>());
24}
25
26template <typename TDerived>
27inline JsonArray VariantRefBase<TDerived>::createNestedArray() const {

Callers

nothing calls this directly

Calls 1

fromJsonFunction · 0.85

Tested by

no test coverage detected