The IDL generated serializer method should ensure that the required fields without a default value have a value so that there is not undefined behavior.