fn collect_field_types_from_object( field_types: &mut IndexMap<String, InferredType>, map: &Map<String, Value>, ) -> Result<(), ArrowError>