code: func NewAlertFromPayload(serializedPayload []byte, pver uint32) (*Alert, error) {
  	var alert Alert
  	r := bytes.NewReader(serializedPayload)
  	err := alert.Deserialize(r, pver)
  	if err != nil {
  		return nil, err
  	}
  	return &alert, nil
  }
docs: // NewAlertFromPayload returns an Alert with values deserialized from the
  // serialized payload.