UsageStats.fromMap constructor

UsageStats.fromMap(
  1. Map map
)

Implementation

UsageStats.fromMap(Map<dynamic, dynamic> map) {
  applicationName = map['applicationName'];
  packageName = map['packageName'];
  firstTimeStamp = map['firstTimeStamp'];
  lastTimeStamp = map['lastTimeStamp'];
  lastTimeUsed = map['lastTimeUsed'];
  totalTimeInForeground = map['totalTimeInForeground'];
  describeContents = map['describeContents'];
  lastTimeVisible = map['lastTimeVisible'];
  totalTimeVisible = map['totalTimeVisible'];
  lastTimeForegroundServiceUsed = map['lastTimeForegroundServiceUsed'];
  totalTimeForegroundServiceUsed = map['totalTimeForegroundServiceUsed'];
}