public async Task <List <T> > GetModuleFields <T>(SuiteReadEntryListRequest req) where T :
        SugarCrmModels.EntityBase
        {
            var resp = await GetModuleFields(req).ConfigureAwait(false);

            var strList = Convert.ToString(resp.EntityList);

            return(ToObjects <T>(strList));
        }
        public async Task <ReadEntryListResponse> GetModuleFields(SuiteReadEntryListRequest req)
        {
            string method = "get_module_fields";
            var    get_module_fieldsDetails = new
            {
                session                   = req.SessionId,
                module_name               = req.ModuleName,
                query                     = req.Query,
                order_by                  = req.OrderBy,
                offset                    = req.Offset,
                select_fields             = req.SelectFields.ToArray(),
                link_name_to_fields_array = req.LinkNameToFieldsArray.ToArray(),
                max_results               = req.MaxResults,
                deleted                   = req.Deleted,
                favorites                 = req.Favorites
            };
            var jstr = await CallApi(method, get_module_fieldsDetails).ConfigureAwait(false);

            return(JsonConvert.DeserializeObject <ReadEntryListResponse>(jstr));
        }