NotificationSounds.fromJson constructor

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

Parses a NotificationSounds from TDLib JSON.

Implementation

factory NotificationSounds.fromJson(Map<String, dynamic> json) =>
    NotificationSounds(
      notificationSounds: _readList<NotificationSound>(
          json['notification_sounds'],
          (e) => _readObject(e, NotificationSound.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );