toReturnItemCollectionMetrics method

ReturnItemCollectionMetrics toReturnItemCollectionMetrics()

Implementation

ReturnItemCollectionMetrics toReturnItemCollectionMetrics() {
  switch (this) {
    case 'SIZE':
      return ReturnItemCollectionMetrics.size;
    case 'NONE':
      return ReturnItemCollectionMetrics.none;
  }
  throw Exception('$this is not known in enum ReturnItemCollectionMetrics');
}