NotificationSounds.fromJson constructor

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

Parse from a json

Implementation

factory NotificationSounds.fromJson(Map<String, dynamic> json) =>
    NotificationSounds(
      notificationSounds: List<NotificationSound>.from(
          (json['notification_sounds'] ?? [])
              .map((item) => NotificationSound.fromJson(item))
              .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );