Accept map, not map pointer.
Documentation.
Better error messages.
Better argument names.
StructToMap().