toBundleType method

BundleType toBundleType()

Implementation

BundleType toBundleType() {
  switch (this) {
    case 'tar':
      return BundleType.tar;
    case 'tgz':
      return BundleType.tgz;
    case 'zip':
      return BundleType.zip;
    case 'YAML':
      return BundleType.yaml;
    case 'JSON':
      return BundleType.json;
  }
  throw Exception('$this is not known in enum BundleType');
}