FileStat.fromJson constructor

FileStat.fromJson(
  1. JsonMap rawData
)

Implementation

factory FileStat.fromJson(JsonMap rawData) => FileStat(
      bytesCompleted: rawData["bytesCompleted"] as num,
      wanted: rawData["wanted"] as bool,
      priority: rawData["priority"] as num,
    );