TimezoneInfo.fromJson constructor

TimezoneInfo.fromJson(
  1. Map json
)

Implementation

factory TimezoneInfo.fromJson(Map json) {
  final localizedName = json['localizedName'];
  return TimezoneInfo(
      identifier: json['identifier'] as String,
      localizedName: localizedName == null ? null : (name: localizedName, locale: json['locale']));
}