toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (maxAttempts.isNotDefault) 'maxAttempts': maxAttempts,
  'maxRetryDuration': ?maxRetryDuration?.toJson(),
  'minBackoff': ?minBackoff?.toJson(),
  'maxBackoff': ?maxBackoff?.toJson(),
  if (maxDoublings.isNotDefault) 'maxDoublings': maxDoublings,
};