TapiInfo.fromJson constructor
TapiInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TapiInfo.fromJson(Map<String, dynamic> json) => TapiInfo(
activated: json["activated"],
active: json["active"],
bit: json["bit"],
currentEpoch: json["current_epoch"],
description: json["description"],
finished: json["finished"],
globalAcceptanceRate: json["global_acceptance_rate"].toDouble(),
lastUpdated: json["last_updated"],
rates: List<Rate>.from(json["rates"].map((x) => Rate.fromJson(x))),
relativeAcceptanceRate: json["relative_acceptance_rate"].toDouble(),
startEpoch: json["start_epoch"],
startTime: json["start_time"],
stopEpoch: json["stop_epoch"],
stopTime: json["stop_time"],
tapiId: json["tapi_id"],
title: json["title"],
urls: List<String>.from(json["urls"].map((x) => x)),
);