I cannot save the Map type in my box, the songInfo
attributes
@Entity()
class PlaylistItem {
int id = 0;
int recentIndex;
Map<String, Object> songInfo;
PlaylistItem({
this.recentIndex = 0,
this.songInfo = const <String, Object>{} ,
});
}
When I run: flutter pub run build_runner build
it ignores songInfo
WARNING : skipping property 'songInfo' in entity 'PlaylistItem', as it has an unsupported type: 'Map<String, Object>'
Why is Map an unsupported type? How do I store Map? please I need help (with an example would be welcome)