pub fn to_json(model: &Model) -> Result<String>
Serialize a model using protobuf’s canonical JSON mapping.