/***********************************************************************************************************
 * Name         : ApexToLwcResponseWrapper
 * Purpose      : Generic response wrapper for returning data and error information from Apex to LWC
 **********************************************************************************************************/
public class ApexToLwcResponseWrapper {
    @AuraEnabled
    public Object data;
    @AuraEnabled
    public String error;

    public ApexToLwcResponseWrapper() {
    }

    public ApexToLwcResponseWrapper(Object data, String error) {
        this.data = data;
        this.error = error;
    }
}
