docs: def to_dict(self):
          """Converts this object to an (ordered) dictionary of field-value pairs.
  
          >>> m = MRZ(['IDAUT10000999<6<<<<<<<<<<<<<<<', '7109094F1112315AUT<<<<<<<<<<<6', 'MUSTERFRAU<<ISOLDE<<<<<<<<<<<<']).to_dict()
          >>> assert m['type'] == 'ID' and m['country'] == 'AUT' and m['number'] == '10000999<'
          >>> assert m['valid_number'] and m['valid_date_of_birth'] and m['valid_expiration_date'] and not m['valid_composite']
          """
  
          result = OrderedDict()
          result['mrz_type'] = self.mrz_type
          result['valid_score'] = self.valid_score
          if self.mrz_type is not None:
              result['type'] = self.type
              result['country'] = self.country
              result['number'] = self.number
              result['date_of_birth'] = self.date_of_birth
              result['expiration_date'] = self.expiration_date
              result['nationality'] = self.nationality
              result['sex'] = self.sex
              result['names'] = self.names
              result['surname'] = self.surname
              if self.mrz_type == 'TD1':
                  result['optional1'] = self.optional1
                  result['optional2'] = self.optional2
              elif self.mrz_type in ['TD2', 'MRVA', 'MRVB']:
                  result['optional1'] = self.optional1
              else:
                  result['personal_number'] = self.personal_number
              result['check_number'] = self.check_number
              result['check_date_of_birth'] = self.check_date_of_birth
              result['check_expiration_date'] = self.check_expiration_date
              if self.mrz_type not in ['MRVA', 'MRVB']:
                  result['check_composite'] = self.check_composite
              if self.mrz_type == 'TD3':
                  result['check_personal_number'] = self.check_personal_number
              result['valid_number'] = self.valid_check_digits[0]
              result['valid_date_of_birth'] = self.valid_check_digits[1]
              result['valid_expiration_date'] = self.valid_check_digits[2]
              if self.mrz_type not in ['MRVA', 'MRVB']:
                  result['valid_composite'] = self.valid_check_digits[3]
              if self.mrz_type == 'TD3':
                  result['valid_personal_number'] = self.valid_check_digits[4]
              if 'method' in self.aux:
                  result['method'] = self.aux['method']
          return result