toProfileInstrumentsJSON method
Map<String, dynamic>
toProfileInstrumentsJSON(
)
Implementation
Map<String, dynamic> toProfileInstrumentsJSON() {
AppConfig.logger.d("Profile toJSON for Firestore with no Id");
return <String, dynamic>{
'id': id,
'name': name,
'position': position?.toJson(),
'photoUrl': photoUrl,
'aboutMe': aboutMe,
'usageReason': usageReason.name,
///DEPRECATED 'appMediaItems': appMediaItems,
'chamberPresets': chamberPresets,
'genres': genres?.values.map((genre) => genre.name).toList(),
'mainFeature': mainFeature,
'instruments': instruments?.values.map((instrument) => instrument.name).toList(),
'frequencies': frequencies?.values.map((frequency) => frequency.name).toList(),
'verificationLevel': verificationLevel.name
};
}