Update custom-serialization code to go backward
Update custom-serialization code to go backward

Kubernetes-commit: 4f1daf0cf30dbb119f670ace1c2e1b4eabbc030d

kubernetes/code-generator,kubernetes/code-generator