Parse message of custom class.