FastLED 3.9.15
Loading...
Searching...
No Matches

◆ as_int() [1/4]

fl::optional< int64_t > fl::JsonValue::as_int ( )
inline

Definition at line 902 of file json.h.

904 {
905 // Check if we have a valid value first
906 if (data.empty()) {
907 return fl::nullopt;
908 }
909
910 IntConversionVisitor<int64_t> visitor;
911 data.visit(visitor);
constexpr nullopt_t nullopt
Definition optional.h:11
variant_t data
Definition json.h:678

Referenced by fl::JsonValue::array_iterator< T >::get_value().

+ Here is the caller graph for this function: