toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() {
  for (final Field field in fields) {
    print(field.value);
  }

  return Map.fromIterable(
    fields,
    key: (a) => a.id,
    value: (field) => field.value,
  );
}