formatEntity property
Map<dynamic, MostPlayedEntity>
formatEntity
Used to format a list of MostPlayedEntity
into a map.
Implementation
Map<dynamic, MostPlayedEntity> get formatEntity {
Map<dynamic, MostPlayedEntity> tempMap = {};
//
for (var entity in this) {
tempMap[entity.key] = entity;
}
return tempMap;
}