TimezoneModel.fromJson constructor

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

Implementation

factory TimezoneModel.fromJson(Map<String, dynamic> json) => TimezoneModel(
      value: json["value"],
      abbr: json["abbr"],
      offset: json["offset"]?.toDouble(),
      isdst: json["isdst"],
      text: json["text"],
      utc: json["utc"] == null
          ? []
          : List<String>.from(json["utc"]!.map((x) => x)),
    );