fromJson static method

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

Implementation

static TimeZones? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TimeZones(
    timeZones: List<TimeZone>.from(
      tdListFromJson(json['time_zones'])
          .map((item) => TimeZone.fromJson(tdMapFromJson(item)))
          .whereType<TimeZone>(),
    ),
  );
}