package slobs import "encoding/json" type ResourceEvent struct { Type string `json:"_type"` ResourceId string `json:"resourceId"` Emitter string `json:"emitter"` Data *json.RawMessage `json:"data"` } func (e *ResourceEvent) DecodeTo(v interface{}) error { return json.Unmarshal(*e.Data, &v) } type IStreamingState struct { StreamingStatus string `json:"streamingStatus"` RecordingStatus string `json:"recordingStatus"` ReplayBufferStatus string `json:"replayBufferStatus"` }