toImportDestinationType method

ImportDestinationType toImportDestinationType()

Implementation

ImportDestinationType toImportDestinationType() {
  switch (this) {
    case 'SUPPRESSION_LIST':
      return ImportDestinationType.suppressionList;
    case 'CONTACT_LIST':
      return ImportDestinationType.contactList;
  }
  throw Exception('$this is not known in enum ImportDestinationType');
}