Marshal serializes the SessionEvent to JSON.
()
| 11 | |
| 12 | // Marshal serializes the SessionEvent to JSON. |
| 13 | func (r *SessionEvent) Marshal() ([]byte, error) { |
| 14 | return json.Marshal(r) |
| 15 | } |
| 16 | |
| 17 | func (e *SessionEvent) UnmarshalJSON(data []byte) error { |
| 18 | type rawEvent struct { |
no outgoing calls