Implement argument reading for Gradient objects.