Read a map with length entries.
length
If length is not provided, it is read first.
Map readMap([int? length]);