toMap
Converts a record to a map.
Each field of the record becomes a map entry.
Arguments
Record to convert. If no argument is provided, an empty HashMap is created.
Each field of the record becomes a map entry.
Record to convert. If no argument is provided, an empty HashMap is created.