Constructor to initialize the object from a JSON map.
Usages.fromJson(Map<String, dynamic> json) { totalTimeInForeground = json['totalTimeInForeground']; date = json['date']; }