Tracker.fromJson constructor

Tracker.fromJson(
  1. JsonMap rawData
)

Implementation

factory Tracker.fromJson(JsonMap rawData) {
  return Tracker(
    announce: rawData['announce'] as String,
    id: rawData['id'] as num,
    scrape: rawData['scrape'] as String,
    tier: rawData['tier'] as num,
    sitename: rawData['sitename'] as String?,
  );
}