Unread constructor

Unread(
  1. Map map
)

Constructor of Unread counters

param with Map

Implementation

Unread(Map map) {
  map.forEach((key, value) {
    if (key == COUNT) count = int.parse(value.toString());
    if (key == LAST_ACCESS) lastAccess = value.toString();
  });
}