選択リストから画面の選択項目に表示する

    例 LWC
  this.resFroms = await xxxxxxx();
    
    get options4ResFrom() {
    let tmp = [];
    for (let key in this.resFroms) {
        tmp.push({label:this.resFroms[key], value:key});
     }
     return tmp;
    }

    ■Apex: 
  @AuraEnabled
    public static Map<String,String> xxxxxxx() {
        String objName = FmlReservation__c.sObjectType.getDescribe().getName();
        String fieldName = FmlReservation__c.sObjectType.fields.ReservationFrom__c.getDescribe().getName();
        return CommonUtils.yyyyyyyyyy(objName,fieldName);
    }
    
    public static Map<String,String> yyyyyyyyyy(String sObjName, String fieldName){
        Map<String,String> rltMap = new Map<String,String>();
        List<Schema.PicklistEntry> pickList = CommonUtils.zzzzzzzz(sObjName,fieldName);
        for(Schema.PicklistEntry p : pickList) {
            if(p.isActive()) {
                rltMap.put(p.getLabel(),p.getValue());
            }
        }
        return rltMap;
    }
    
    //選択リスト型の選択できる値を取得
    public static List<Schema.PicklistEntry> zzzzzzzz(String sObjName, String fieldName){
    
        List<Schema.PicklistEntry> pickList;
        Schema.SObjectType sObjType = (Schema.SObjectType) Schema.getGlobalDescribe().get(sObjName);
        if(sObjType != null){
            Map<String, Schema.SObjectField> fieldmap = sObjType.getDescribe().fields.getMap();
            Schema.SObjectField f = (Schema.SObjectField) fieldmap.get(fieldName);
            if(f != null){
                Schema.DescribeFieldResult r = f.getDescribe();
                pickList = r.getPicklistValues();
                System.debug('値' + pickList);
            }
        }
        return pickList;
    }