in darabonba/policy/retry.py [0:0]
def to_map(self):
result = dict()
if self.max_attempts:
result['maxAttempts'] = self.max_attempts
if self.backoff:
result['backoff'] = self.backoff.to_map()
if self.exception:
result['exception'] = self.exception
if self.error_code:
result['errorCode'] = self.error_code
if self.max_delay:
result['maxDelay'] = self.max_delay
return result