Map<String, dynamic> toMap() { return { 'payloadType': payloadType, 'name': name, 'kind': kind, 'clockRate': clockRate, 'numChannels': numChannels, 'parameters': parameters, }; }