Exemple #1
0
// UnserializeRequest converts request data into a request object.
func (s *Serializer) UnserializeRequest(rawData interface{}, request kit.Request) apperror.Error {
	transData, err := s.UnserializeTransferData(rawData)
	if err != nil {
		return err
	}
	request.SetTransferData(transData)
	request.SetData(transData.GetData())
	return nil
}