code: func (s *StreamName) UnmarshalJSON(data []byte) error {
  	v := ""
  	if err := json.Unmarshal(data, &v); err != nil {
  		return err
  	}
  	if err := StreamName(v).Validate(); err != nil {
  		return err
  	}
  	*s = StreamName(v)
  	return nil
  }
docs: // UnmarshalJSON implements json.Unmarshaler.