Handle nullable fields in generated structs