code: function(schemaData) {
      var fields = [];
  
      if (schemaData &&
             'object' === typeof schemaData &&
             schemaData['fields'] &&
              Array.isArray(schemaData['fields'])) {
        schemaData['fields'].forEach((f) => {
          if (f['field'] && f['type'] && 'nested' !== f['type']) {
            fields.push(f['field']);
          }
        });
  
      }
  
      if (fields.length) {
        fields = fields.filter(this.uniqueFilter);
      }
  
      return fields;
    }
docs: Looking for Text, Type and label