code: func (r *AddressRange) UnmarshalJSON(data []byte) error {
  	m := map[string]interface{}{}
  	err := json.Unmarshal(data, &m)
  	if err != nil {
  		return err
  	}
  	if r.Sub, err = types.ParseCIDR(m["Sub"].(string)); err != nil {
  		return err
  	}
  	r.Start = uint64(m["Start"].(float64))
  	r.End = uint64(m["End"].(float64))
  	return nil
  }
docs: // UnmarshalJSON decodes data into the Range object