toMap method

Map<String, Object?> toMap()

Converts the ordered key fields and values to a field-name map.

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  for (var i = 0; i < fieldNames.length; i++) fieldNames[i]: values[i],
};