documentTypeString property

String documentTypeString

Returns a string representation of the document type.

The returned string will be one of the following values: 'CARD' for a card-type document, 'A4' for an A4-sized document, 'PASSPORT' for a passport document, 'OTHER' for other types of documents.

Implementation

String get documentTypeString {
  switch (this) {
    case DocumentType.card:
      return 'CARD';
    case DocumentType.a4:
      return 'A4';
    case DocumentType.passport:
      return 'PASSPORT';
    case DocumentType.other:
      return 'OTHER';
    default:
      return 'CARD';
  }
}