Stats.fromJson constructor

Stats.fromJson(
  1. JsonMap rawData
)

Implementation

factory Stats.fromJson(JsonMap rawData) {
  return Stats(
    uploadedBytes: rawData["uploadedBytes"] as num,
    downloadedBytes: rawData["downloadedBytes"] as num,
    filesAdded: rawData["filesAdded"] as num,
    sessionCount: rawData["sessionCount"] as num,
    secondsActive: rawData["secondsActive"] as num,
  );
}