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

◆ as_int() [1/2]

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

Definition at line 1745 of file json.h.

1746 { return m_value ? m_value->as_bool() : fl::nullopt; }
1747 fl::optional<int64_t> as_int() const {
1748 if (!m_value) return fl::nullopt;
fl::optional< int64_t > as_int() const
Definition json.h:1745
fl::shared_ptr< JsonValue > m_value
Definition json.h:1622
Optional< T > optional
Definition optional.h:14
constexpr nullopt_t nullopt
Definition optional.h:11

References m_value, and fl::nullopt.

Referenced by as_impl(), and as_int().

+ Here is the caller graph for this function: