// Single instance: Core --> EventData
 public IKafkaEventData BindSingle(KafkaTriggerInput value, ValueBindingContext context)
 {
     if (value == null)
     {
         throw new ArgumentNullException(nameof(value));
     }
     return(value.GetSingleEventData());
 }
        public Dictionary <string, object> GetBindingData(KafkaTriggerInput value)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            var bindingData = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase);

            if (value.IsSingleDispatch)
            {
                AddBindingData(bindingData, value.GetSingleEventData());
            }
            else
            {
                AddBindingData(bindingData, value.Events);
            }

            return(bindingData);
        }