UsageInfo.fromMap constructor

UsageInfo.fromMap(
  1. Map map
)

Construct class from the json map

Implementation

factory UsageInfo.fromMap(Map map) => UsageInfo(
      firstTimeStamp: map['firstTimeStamp'],
      lastTimeStamp: map['lastTimeStamp'],
      lastTimeUsed: map['lastTimeUsed'],
      totalTimeInForeground: map['totalTimeInForeground'],
      packageName: map['packageName'],
    );