toStorageType method
Implementation
StorageType toStorageType() {
switch (this) {
case 'S3':
return StorageType.s3;
case 'KINESIS_VIDEO_STREAM':
return StorageType.kinesisVideoStream;
case 'KINESIS_STREAM':
return StorageType.kinesisStream;
case 'KINESIS_FIREHOSE':
return StorageType.kinesisFirehose;
}
throw Exception('$this is not known in enum StorageType');
}