Convert a nested struct into a nested map

I actually did that for the outer map. It was a struct, however that function does not turn inner struct into maps…