toExtraParamName method

ExtraParamName toExtraParamName()

Implementation

ExtraParamName toExtraParamName() {
  switch (this) {
    case 'DUNS_NUMBER':
      return ExtraParamName.dunsNumber;
    case 'BRAND_NUMBER':
      return ExtraParamName.brandNumber;
    case 'BIRTH_DEPARTMENT':
      return ExtraParamName.birthDepartment;
    case 'BIRTH_DATE_IN_YYYY_MM_DD':
      return ExtraParamName.birthDateInYyyyMmDd;
    case 'BIRTH_COUNTRY':
      return ExtraParamName.birthCountry;
    case 'BIRTH_CITY':
      return ExtraParamName.birthCity;
    case 'DOCUMENT_NUMBER':
      return ExtraParamName.documentNumber;
    case 'AU_ID_NUMBER':
      return ExtraParamName.auIdNumber;
    case 'AU_ID_TYPE':
      return ExtraParamName.auIdType;
    case 'CA_LEGAL_TYPE':
      return ExtraParamName.caLegalType;
    case 'CA_BUSINESS_ENTITY_TYPE':
      return ExtraParamName.caBusinessEntityType;
    case 'CA_LEGAL_REPRESENTATIVE':
      return ExtraParamName.caLegalRepresentative;
    case 'CA_LEGAL_REPRESENTATIVE_CAPACITY':
      return ExtraParamName.caLegalRepresentativeCapacity;
    case 'ES_IDENTIFICATION':
      return ExtraParamName.esIdentification;
    case 'ES_IDENTIFICATION_TYPE':
      return ExtraParamName.esIdentificationType;
    case 'ES_LEGAL_FORM':
      return ExtraParamName.esLegalForm;
    case 'FI_BUSINESS_NUMBER':
      return ExtraParamName.fiBusinessNumber;
    case 'FI_ID_NUMBER':
      return ExtraParamName.fiIdNumber;
    case 'FI_NATIONALITY':
      return ExtraParamName.fiNationality;
    case 'FI_ORGANIZATION_TYPE':
      return ExtraParamName.fiOrganizationType;
    case 'IT_NATIONALITY':
      return ExtraParamName.itNationality;
    case 'IT_PIN':
      return ExtraParamName.itPin;
    case 'IT_REGISTRANT_ENTITY_TYPE':
      return ExtraParamName.itRegistrantEntityType;
    case 'RU_PASSPORT_DATA':
      return ExtraParamName.ruPassportData;
    case 'SE_ID_NUMBER':
      return ExtraParamName.seIdNumber;
    case 'SG_ID_NUMBER':
      return ExtraParamName.sgIdNumber;
    case 'VAT_NUMBER':
      return ExtraParamName.vatNumber;
    case 'UK_CONTACT_TYPE':
      return ExtraParamName.ukContactType;
    case 'UK_COMPANY_NUMBER':
      return ExtraParamName.ukCompanyNumber;
  }
  throw Exception('$this is not known in enum ExtraParamName');
}