Notification.fromJson constructor

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

Parses a Notification from TDLib JSON.

Implementation

factory Notification.fromJson(Map<String, dynamic> json) => Notification(
  id: _readInt(json['id']),
  date: _readInt(json['date']),
  isSilent: _readBool(json['is_silent']),
  type: _readObject(json['type'], NotificationType.fromJson),
);