toDatasetType method
Implementation
DatasetType toDatasetType() {
switch (this) {
case 'TARGET_TIME_SERIES':
return DatasetType.targetTimeSeries;
case 'RELATED_TIME_SERIES':
return DatasetType.relatedTimeSeries;
case 'ITEM_METADATA':
return DatasetType.itemMetadata;
}
throw Exception('$this is not known in enum DatasetType');
}