toMap method

Map toMap()
override

Implementation

Map<dynamic, dynamic> toMap() {
  Map map = super.toMap();
  map.addAll({
    "needSaveToDB": needSaveToDB == null ? 0 : needSaveToDB,
    "fromID": audioData == null ? null : audioData,
    "duration": duration == null ? 0.0 : duration,
    "audioFile": audioFile == null ? {} : audioFile
  });
  return map;
}