code: protected function generateField($fieldType, $fieldId, array $labels)
      {
          $field = new FieldType();
          $field->setType($fieldType);
          $field->setFieldId($fieldId);
          $field->setDefaultValue(null);
          $field->setSearchable(true);
          $field->setLabels($labels);
  
          return $field;
      }
docs: Generate a field type
  
  @param string $fieldType
  @param string $fieldId
  @param array $labels
  
  @return FieldType