code: def get_fields(self):
          
          if not hasattr(self, '__fields'):
              self.__fields = [
                  self.parse_field(field, index)
                  for index, field in enumerate(getattr(self, 'fields', []))
              ]
          return self.__fields
docs: Get all fields