public Dictionary ToMap()

in Darabonba/Models/SSEEvent.cs [25:45]


        public Dictionary<string, object> ToMap(bool noStream = false)
        {
            var map = new Dictionary<string, object>();
            if (Data != null)
            {
                map["data"] = Data;
            }
            if (Id != null)
            {
                map["id"] = Id;
            }
            if (Event != null)
            {
                map["event"] = Event;
            }
            if (Retry != null)
            {
                map["retry"] = Retry;
            }
            return map;
        }