toCompressionType method

CompressionType toCompressionType()

Implementation

CompressionType toCompressionType() {
  switch (this) {
    case 'None':
      return CompressionType.none;
    case 'Gzip':
      return CompressionType.gzip;
  }
  throw Exception('$this is not known in enum CompressionType');
}