fromMap static method
override
Construct from Map.
Implementation
static NotificationSound? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as int64;
var duration = _map['duration']! as int;
var date = _map['date']! as int;
var title = _map['title']! as String;
var data = _map['data']! as String;
var sound = File.fromMap(_map['sound'])!;
return NotificationSound(
extra: extra,
clientId: clientId,
id: id,
duration: duration,
date: date,
title: title,
data: data,
sound: sound,
);
}