Trait pact_models::json_utils::JsonToNum
source · pub trait JsonToNum<T> {
// Required method
fn json_to_number(map: &Map<String, Value>, field: &str, default: T) -> T;
}
Expand description
Trait to convert a JSON structure to a number