Troubleshooting.fromJson constructor
Implementation
Troubleshooting.fromJson(Map<String, dynamic> json) {
// Set startDate
startDate = (json['startDate'] ?? "") as String;
// Set endDate
endDate = (json['endDate'] ?? "") as String;
// Set timezone
timezone = (json['timezone'] ?? "") as String;
// Set traffic
traffic = (json['traffic'] ?? 0) as int;
}