toType method
Implementation
Type toType() {
switch (this) {
case 'IMPORT_ASSETS_FROM_S3':
return Type.importAssetsFromS3;
case 'IMPORT_ASSET_FROM_SIGNED_URL':
return Type.importAssetFromSignedUrl;
case 'EXPORT_ASSETS_TO_S3':
return Type.exportAssetsToS3;
case 'EXPORT_ASSET_TO_SIGNED_URL':
return Type.exportAssetToSignedUrl;
}
throw Exception('$this is not known in enum Type');
}