toSuppressionListReason method

SuppressionListReason toSuppressionListReason()

Implementation

SuppressionListReason toSuppressionListReason() {
  switch (this) {
    case 'BOUNCE':
      return SuppressionListReason.bounce;
    case 'COMPLAINT':
      return SuppressionListReason.complaint;
  }
  throw Exception('$this is not known in enum SuppressionListReason');
}