Map<String, dynamic> toMap() => { 'amplitude': amplitude.map((p) => p.toMap()).toList(), 'frequency': frequency.map((p) => p.toMap()).toList(), };