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

◆ as_int() [2/4]

template<typename IntType>
fl::optional< IntType > fl::JsonValue::as_int ( )
inline

Definition at line 914 of file json.h.

916 {
917 // Check if we have a valid value first
918 if (data.empty()) {
919 return fl::nullopt;
920 }
921
922 IntConversionVisitor<IntType> visitor;
923 data.visit(visitor);
constexpr nullopt_t nullopt
Definition optional.h:11
variant_t data
Definition json.h:678

References data, fl::nullopt, and fl::IntConversionVisitor< IntType >::result.