SoundPlayingPreferences.fromMap constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory SoundPlayingPreferences.fromMap(Map<String, dynamic> map) {
return SoundPlayingPreferences(
volume: map['volume'],
maxPlayingTime: Duration(seconds: map['maxPlayingTime']),
audioStreamType: AudioStreamTypeExtension.fromId(map['audioStreamType']),
delay: Duration(milliseconds: map['delay']),
);
}