TonCenterStreamingApiUrl.fromJson constructor

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

Parses a TonCenterStreamingApiUrl from TDLib JSON.

Implementation

factory TonCenterStreamingApiUrl.fromJson(Map<String, dynamic> json) =>
    TonCenterStreamingApiUrl(
      url: _readString(json['url']),
      expiresIn: _readInt(json['expires_in']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );