TimeZone.fromJson constructor

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

Parses a TimeZone from TDLib JSON.

Implementation

factory TimeZone.fromJson(Map<String, dynamic> json) => TimeZone(
  id: _readString(json['id']),
  name: _readString(json['name']),
  utcTimeOffset: _readInt(json['utc_time_offset']),
);