TimeZone.fromJson constructor

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

Implementation

TimeZone.fromJson(Map<String, dynamic> json)
    : id = json["id"],
      doomId = json["doom_id"],
      roomId = json["room_id"],
      facilityId = json["facility_id"],
      startTime =TimestringToDateTime.encode(json["start_time"]??"1970-01-01T12:34:56.000Z"),
      endTime =TimestringToDateTime.encode(json["end_time"]??"1970-01-01T12:34:56.000Z");