fromMap static method
Creates an event from a map.
Implementation
static VolumeChangedEvent fromMap(Map<String, dynamic> map) =>
VolumeChangedEvent(
level: map['level'] as int? ?? 0,
type: _stringToAudioVolumeType(map['type'] as String? ?? 'none'));