toColumnMap abstract method
Returns a single-level map that maps the column name to the value on the corresponding index. When multiple columns have the same name, the later may override the previous values.
As an example of how this works:
- Given a query 'SELECT id, name FROM table;'
- That returns the result row
1, 'John', - Then the column map would be {'id': 1, 'name': 'John'}
Implementation
Map<String, dynamic> toColumnMap();