toCfgMap method

Map<String, dynamic> toCfgMap()

Implementation

Map<String, dynamic> toCfgMap() {
  final Map<String, dynamic> param = {
    AiuiConstant.keyPlayMode: playMode.name,
    AiuiConstant.keyBufferTime: bufferTime,
    AiuiConstant.keyStreamType: streamType,
    AiuiConstant.keyAudioFocus: audioFocus == true ? '1' : '0',
  };

  param.removeWhere(_isNull);
  return param;
}