fieldsFromDB function
Implementation
Map<String, dynamic> fieldsFromDB(resolved) {
final fields = fieldsAsMap(resolved)
//The value['value'] is because resolved returns the entity field from the DB
.map((key, value) => MapEntry(key, value['value']));
return fields;
}