@AuraEnabled() public static Map<String, Object> test() { Map<String, Object> scc = new Map<String, Object>(); try { //CODE scc.put('key', value); } catch (Exception e) { throw new AuraHandledException(e.getMessage()); } return scc; }
@AuraEnabled() public static Map<String, Object> test() { Map<String, Object> scc = new Map<String, Object>(); try { //CODE scc.put('key', value); } catch (Exception e) { throw new AuraHandledException(e.getMessage()); } return scc; }