convert between map and struct