toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'processingState': processingState.index,
      'playing': playing,
      'controls': controls.map((control) => control.toMap()).toList(),
      'androidCompactActionIndices': androidCompactActionIndices,
      'systemActions': systemActions.map((action) => action.index).toList(),
      'updatePosition': updatePosition.inMilliseconds,
      'bufferedPosition': bufferedPosition.inMilliseconds,
      'speed': speed,
      'updateTime': updateTime.millisecondsSinceEpoch,
      'errorCode': errorCode,
      'errorMessage': errorMessage,
      'repeatMode': repeatMode.index,
      'shuffleMode': shuffleMode.index,
      'captioningEnabled': captioningEnabled,
      'queueIndex': queueIndex,
    };