toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  final Map<String, dynamic> param = {
    AiuiConstant.keyDataType: dataType.name,
    AiuiConstant.keyTag: tag ?? dataType.tag,
    AiuiConstant.keySampleRate: sampleRate,
    AiuiConstant.keyDwa: dwa,
  };

  param.removeWhere(_isNull);
  return param;
}