Remove unnecessary check when adding SerializedName import

The if statement that determines if the import for SerializedName
doesn't need to include checks on both serializeAllNames and
hasSerializedNames, since hasSerializedNames checks if all names
are serialized.