UpdateSavedNotificationSounds.fromJson constructor

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

Parse from a json

Implementation

factory UpdateSavedNotificationSounds.fromJson(Map<String, dynamic> json) =>
    UpdateSavedNotificationSounds(
      notificationSoundIds: List<int>.from(
          (json['notification_sound_ids'] ?? [])
              .map((item) => item)
              .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );