AppleNotification.fromMap constructor
Constructs an AppleNotification from a raw Map.
Implementation
factory AppleNotification.fromMap(Map<String, dynamic> map) {
return AppleNotification(
badge: map['badge'],
subtitle: map['subtitle'],
subtitleLocArgs: _toList(map['subtitleLocArgs']),
subtitleLocKey: map['subtitleLocKey'],
imageUrl: map['imageUrl'],
sound: map['sound'] == null
? null
: AppleNotificationSound.fromMap(
Map<String, dynamic>.from(map['sound'])),
);
}