API Documentation for toMap.
Map<String, Object?> toMap() => <String, Object?>{ 'bytes': bytes, 'spectrum': spectrum, 'sampleRate': sampleRate, };