docs: def as_dictionary(self):
          """
          Return the service agreement template as a dictionary.
  
          :return: dict
          """
          template = {
              'contractName': self.contract_name,
              'events': [e.as_dictionary() for e in self.agreement_events],
              'fulfillmentOrder': self.fulfillment_order,
              'conditionDependency': self.condition_dependency,
              'conditions': [cond.as_dictionary() for cond in self.conditions]
          }
          return {
              # 'type': self.DOCUMENT_TYPE,
              'name': self.name,
              'creator': self.creator,
              'serviceAgreementTemplate': template
          }