Beispiel #1
0
func (this *NetworkList) UnmarshalJSON(data []byte) error {
	strlist, err := serialjson.UnmarshalStringList(data)
	if err != nil {
		return err
	}
	*this = NewNetworkList(strlist)
	return nil
}
Beispiel #2
0
func (this *TagList) UnmarshalJSON(data []byte) error {
	tags, err := serialjson.UnmarshalStringList(data)
	if err != nil {
		return err
	}
	*this = NewTagList(tags)
	return nil
}