func (c *Card) UnmarshalJSON(data []byte) error {
	doc := &cardAlias{}
	if err := json.Unmarshal(data, doc); err != nil {
		return err
	}
	*c = Card(*doc)
	return errors.Wrap(c.Validate(), "validation error")
}
// UnmarshalJSON implements the json.Unmarshaler interface for the Card type.
UnmarshalJSON implements the json.Unmarshaler interface for the Card type.
// UnmarshalJSON implements the json . Unmarshaler interface for the Card type .
func (c *Card) UnmarshalJSON(data []byte) error {
	doc := &cardAlias{}
	if err := json.Unmarshal(data, doc); err != nil {
		return err
	}
	*c = Card(*doc)
	return errors.Wrap(c.Validate(), "validation error")
}
func ( c * Card ) UnmarshalJSON ( data [ ] byte ) error { doc := & cardAlias { } if err := json . Unmarshal ( data , doc ) ; err != nil { return err } * c = Card ( * doc ) return errors . Wrap ( c . Validate ( ) , " " ) }
UnmarshalJSON implements the json.Unmarshaler interface for the Card type.
UnmarshalJSON implements the json . Unmarshaler interface for the Card type .