CurrentWeather.fromJson constructor

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

Parses a CurrentWeather from TDLib JSON.

Implementation

factory CurrentWeather.fromJson(Map<String, dynamic> json) => CurrentWeather(
  temperature: _readDouble(json['temperature']),
  emoji: _readString(json['emoji']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);