toDataType method
Implementation
DataType toDataType() {
switch (this) {
case 'STRING':
return DataType.string;
case 'INTEGER':
return DataType.integer;
case 'FLOAT':
return DataType.float;
case 'BOOLEAN':
return DataType.boolean;
}
throw Exception('$this is not known in enum DataType');
}