# toDocumentType method

DocumentType toDocumentType()

## Implementation

    DocumentType toDocumentType() {
      late DocumentType type;
      switch (this) {
        case MRZ.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.MRZ;
          break;
        case DeIdCardFront.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DeIdCardFront;
          break;
        case DeIdCardBack.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DeIdCardBack;
          break;
        case DePassport.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DePassport;
          break;
        case DeDriverLicenseFront.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DeDriverLicenseFront;
          break;
        case DeDriverLicenseBack.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DeDriverLicenseBack;
          break;
        case Categories.DOCUMENT_NORMALIZED_TYPE:
          type = DocumentType.DeDriverLicenseBack_categories;
          break;
      }
      return type;
    }