NotificationSound.fromJson constructor

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

Parse from a json

Implementation

factory NotificationSound.fromJson(Map<String, dynamic> json) =>
    NotificationSound(
      id: int.parse(json['id']),
      duration: json['duration'],
      date: json['date'],
      title: json['title'],
      data: json['data'],
      sound: File.fromJson(json['sound']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );