Troubleshooting.fromJson constructor

Troubleshooting.fromJson(
  1. Map<String, dynamic> json
)

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;
}