Hello everyone,
I'm doing a REST service for integration between 2 systems. The system that invokes me expects a response object where only one of its attributes changes. It could be something like this:
Class ResponseCustomer {
Property Code As %String;
Property Info As Customer;
}Class ResponseAppointment {
Property Code As %String;
Property Info As Appointment;
}Class ResponseCancellation {
Property Code As %String;
Property Info As %String;
}To avoid creating almost identical objects for each of the methods of my REST service, I had thought to implement

