fromJson static method
Implementation
static NotificationSound? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return NotificationSound(
id: int.tryParse((json['id'] as dynamic)?.toString() ?? '') ?? 0,
duration: (json['duration'] as int?) ?? 0,
date: (json['date'] as int?) ?? 0,
title: (json['title'] as String?) ?? '',
data: (json['data'] as String?) ?? '',
sound: File.fromJson(tdMapFromJson(json['sound'])),
);
}