toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final Map<String, String> param = {
    AiuiConstant.keyVcn: vcn.toString(),
    AiuiConstant.keySpeed: speed.toString(),
    AiuiConstant.keyVolume: volume.toString(),
    AiuiConstant.keyPitch: pitch.toString(),
    AiuiConstant.keyEnt: ent.name,
    AiuiConstant.keyTag: tag ?? '@${DateTime.now().millisecond}'
  };

  param.removeWhere(_isNull);
  return param;
}