toDimensionValueSource method

DimensionValueSource toDimensionValueSource()

Implementation

DimensionValueSource toDimensionValueSource() {
  switch (this) {
    case 'MESSAGE_TAG':
      return DimensionValueSource.messageTag;
    case 'EMAIL_HEADER':
      return DimensionValueSource.emailHeader;
    case 'LINK_TAG':
      return DimensionValueSource.linkTag;
  }
  throw Exception('$this is not known in enum DimensionValueSource');
}