Transfer CSV File from GCS to BQ using DataFlow Template

I have a list of CSV Files in GCS Bucket I want to Load those files in BQ.

BEFORE LOADING ALL COLUMNS NEEDED CONVERT INTO STRING TYPE

I am using Dataflow Template Text File on Cloud Storage To BigQuery Where a JavaScript UserDefinedFunction(UDF) needed tobe mention and a JSON For Defining the BigQuerytable Schema.

In JSON Schema need to Convert each Column as a String. (It's a Tedious Task as each CSV has 50+ column and I have to manually write column name in UDF and JSON )

is there any Approach to DO this?