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

◆ as_int() [3/4]

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

Definition at line 1024 of file json.h.

1026 {
1027 // Check if we have a valid value first
1028 if (data.empty()) {
1029 return fl::nullopt;
1030 }
1031
1032 IntConversionVisitor<int64_t> visitor;
1033 data.visit(visitor);
constexpr nullopt_t nullopt
Definition optional.h:11
variant_t data
Definition json.h:678