toUsageStatisticType method
Implementation
UsageStatisticType toUsageStatisticType() {
switch (this) {
case 'SUM_BY_ACCOUNT':
return UsageStatisticType.sumByAccount;
case 'SUM_BY_DATA_SOURCE':
return UsageStatisticType.sumByDataSource;
case 'SUM_BY_RESOURCE':
return UsageStatisticType.sumByResource;
case 'TOP_RESOURCES':
return UsageStatisticType.topResources;
}
throw Exception('$this is not known in enum UsageStatisticType');
}