func (c *ChangedRevs) UnmarshalJSON(data []byte) error {
	var changes []struct {
		Rev string `json:"rev"`
	}
	if err := json.Unmarshal(data, &changes); err != nil {
		return err
	}
	revs := ChangedRevs(make([]string, len(changes)))
	for i, change := range changes {
		revs[i] = change.Rev
	}
	*c = revs
	return nil
}
// UnmarshalJSON satisfies the json.Unmarshaler interface
UnmarshalJSON satisfies the json.Unmarshaler interface
// UnmarshalJSON satisfies the json . Unmarshaler interface
func (c *ChangedRevs) UnmarshalJSON(data []byte) error {
	var changes []struct {
		Rev string `json:"rev"`
	}
	if err := json.Unmarshal(data, &changes); err != nil {
		return err
	}
	revs := ChangedRevs(make([]string, len(changes)))
	for i, change := range changes {
		revs[i] = change.Rev
	}
	*c = revs
	return nil
}
func ( c * ChangedRevs ) UnmarshalJSON ( data [ ] byte ) error { var changes [ ] struct { Rev string `json:"rev"` } if err := json . Unmarshal ( data , & changes ) ; err != nil { return err } revs := ChangedRevs ( make ( [ ] string , len ( changes ) ) ) for i , change := range changes { revs [ i ] = change . Rev } * c = revs return nil }
UnmarshalJSON satisfies the json.Unmarshaler interface
UnmarshalJSON satisfies the json . Unmarshaler interface