toMap method
Implementation
@override
Map<String, Object?> toMap() {
final data = <String, Object?>{
'previousQuality': previousQuality,
'newQuality': newQuality,
'bitrate': bitrate,
'framesPerSecond': framesPerSecond,
'automatic': automatic,
};
data.removeWhere((key, value) => value == null);
return data;
}