Return a well-typed representation of a dynamic.
Declared in <folly/json/DynamicConverter.h>
template<typename T>
T
convertTo(dynamic const& d);
See docs/DynamicConverter.md for supported types and customization.
The value converted to type T. refcode folly/docs/examples/folly/DynamicConverter.cpp
| Name | Description |
|---|---|
| T | A type representing the structure of the dynamic argument. |
| Name | Description |
|---|---|
| d | The dynamic value to convert. |