code: def to_dict(self):
      return {
          "reference": self.reference,
          "amount": self.amount,
          "percentage": self.percentage,
      }
  
file_path: calamari/calamari_ocr/ocr/augmentation/dataaugmentationparams.py
imports: from tfaip.util.enum import StrEnum
label_desc: Use image node_id 2 for calling the DataAugmentationAmount obj's underlying member method code with example usage: obj.to_dict() and returns: dict