Function type_to_ocaml_call

Source
pub(crate) fn type_to_ocaml_call(ctx: &GenerateCtx<'_>, ty: &Ty) -> String
Expand description

Converts a type to the appropriate *_of_json call. In case of generics, this combines several functions, e.g. list_of_json bool_of_json.