TimezoneResponse.fromJson constructor

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

Implementation

factory TimezoneResponse.fromJson(Map<String, dynamic> json) =>
    TimezoneResponse(
      timeZone: json["timeZone"],
      currentLocalTime: json["currentLocalTime"] == null
          ? null
          : DateTime.parse(json["currentLocalTime"]),
      currentUtcOffset: json["currentUtcOffset"] == null
          ? null
          : UtcOffset.fromJson(json["currentUtcOffset"]),
      standardUtcOffset: json["standardUtcOffset"] == null
          ? null
          : UtcOffset.fromJson(json["standardUtcOffset"]),
      hasDayLightSaving: json["hasDayLightSaving"],
      isDayLightSavingActive: json["isDayLightSavingActive"],
      dstInterval: json["dstInterval"],
    );