toMap method

Map<String, dynamic> toMap()

Serializes this instance to a JSON-compatible map.

Used internally, not intended for direct use by consumers. The map structure may change without notice.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'volume': volume,
    'maxPlayingTime': maxPlayingTime.inSeconds,
    'audioStreamType': audioStreamType.id,
    'delay': delay.inMilliseconds,
  };
}