func (cc *CardCollection) UnmarshalJSON(data []byte) error {
	var ids []string
	if err := json.Unmarshal(data, &ids); err != nil {
		return err
	}
	cc.col = make(map[string]struct{})
	for _, id := range ids {
		cc.col[id] = struct{}{}
	}
	return nil
}
// UnmarshalJSON implements the json.Unmarshaler interface for the CardCollection
// type.
UnmarshalJSON implements the json.Unmarshaler interface for the CardCollection
type.
// UnmarshalJSON implements the json . Unmarshaler interface for the CardCollection // type .
func (cc *CardCollection) UnmarshalJSON(data []byte) error {
	var ids []string
	if err := json.Unmarshal(data, &ids); err != nil {
		return err
	}
	cc.col = make(map[string]struct{})
	for _, id := range ids {
		cc.col[id] = struct{}{}
	}
	return nil
}
func ( cc * CardCollection ) UnmarshalJSON ( data [ ] byte ) error { var ids [ ] string if err := json . Unmarshal ( data , & ids ) ; err != nil { return err } cc . col = make ( map [ string ] struct { } ) for _ , id := range ids { cc . col [ id ] = struct { } { } } return nil }
UnmarshalJSON implements the json.Unmarshaler interface for the CardCollection
type.
UnmarshalJSON implements the json . Unmarshaler interface for the CardCollection type .