pub fn config_value_from_json_value(
val: &Value,
value_type: &ConfigValueType,
) -> Result<ConfigValue, FieldError>
Expand description
Returns a FIDL value to encode in the file for the provided JSON value, if and only if the value matches the type from the declaration.