UpdateHavePendingNotifications.fromJson constructor

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

Parses a UpdateHavePendingNotifications from TDLib JSON.

Implementation

factory UpdateHavePendingNotifications.fromJson(Map<String, dynamic> json) =>
    UpdateHavePendingNotifications(
      haveDelayedNotifications: _readBool(json['have_delayed_notifications']),
      haveUnreceivedNotifications:
          _readBool(json['have_unreceived_notifications']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );