macro_rules! translate {
($target:expr, $value:expr, $map:expr, $map_eval:expr, $(($method:ident, $ty:ty)),* $(,)?) => { ... };
}Expand description
Used to translate serde_json::Value into DataPack<T>.
This macro avoids writing a lot of duplicate code.