toRedshiftResultCompressionType method
Implementation
RedshiftResultCompressionType toRedshiftResultCompressionType() {
switch (this) {
case 'None':
return RedshiftResultCompressionType.none;
case 'GZIP':
return RedshiftResultCompressionType.gzip;
case 'BZIP2':
return RedshiftResultCompressionType.bzip2;
case 'ZSTD':
return RedshiftResultCompressionType.zstd;
case 'SNAPPY':
return RedshiftResultCompressionType.snappy;
}
throw Exception('$this is not known in enum RedshiftResultCompressionType');
}