func (info *ImageInfo) UnmarshalJSON(data []byte) (err error) {
	var s string
	if err = json.Unmarshal(data, &s); err != nil {
		return err
	}
	if info.version, err = version.Parse(s); err != nil {
		return errors.Trace(err)
	}
	return nil
}
// UnmarshalJSON implements json.Unmarshaler.
UnmarshalJSON implements json.Unmarshaler.
// UnmarshalJSON implements json . Unmarshaler .
func (info *ImageInfo) UnmarshalJSON(data []byte) (err error) {
	var s string
	if err = json.Unmarshal(data, &s); err != nil {
		return err
	}
	if info.version, err = version.Parse(s); err != nil {
		return errors.Trace(err)
	}
	return nil
}
func ( info * ImageInfo ) UnmarshalJSON ( data [ ] byte ) ( err error ) { var s string if err = json . Unmarshal ( data , & s ) ; err != nil { return err } if info . version , err = version . Parse ( s ) ; err != nil { return errors . Trace ( err ) } return nil }
UnmarshalJSON implements json.Unmarshaler.
UnmarshalJSON implements json . Unmarshaler .