Set serializer params from block