示例#1
0
func (i *EventId) UnmarshalJSON(bytes []byte) (err error) {
	*i, err = ParseEventId(utils.StripQuotes(string(bytes)))
	return
}
示例#2
0
func (i *Alias) UnmarshalJSON(bytes []byte) (err error) {
	*i, err = ParseAlias(utils.StripQuotes(string(bytes)))
	return
}
示例#3
0
func (t *StreamToken) UnmarshalJSON(bytes []byte) (err error) {
	*t, err = ParseStreamToken(utils.StripQuotes(string(bytes)))
	return
}