Код: Выделить всё
@NoArgsConstructor
public class CustomData {
}
Код: Выделить всё
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Recipient {
@NotEmpty(message = "Please provide email details of recipient")
public String email;
public CustomData custom_data;
}
Код: Выделить всё
"recipients": [
{
"custom_data": {},
"email": "string"
}
]
Может кто-нибудь помочь? Спасибо, что уделили время
Подробнее здесь: https://stackoverflow.com/questions/709 ... eric-class