toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (elementCountThreshold.isNotDefault)
    'elementCountThreshold': elementCountThreshold,
  if (requestByteThreshold.isNotDefault)
    'requestByteThreshold': requestByteThreshold.toString(),
  'delayThreshold': ?delayThreshold?.toJson(),
  if (elementCountLimit.isNotDefault) 'elementCountLimit': elementCountLimit,
  if (requestByteLimit.isNotDefault) 'requestByteLimit': requestByteLimit,
  if (flowControlElementLimit.isNotDefault)
    'flowControlElementLimit': flowControlElementLimit,
  if (flowControlByteLimit.isNotDefault)
    'flowControlByteLimit': flowControlByteLimit,
  if (flowControlLimitExceededBehavior.isNotDefault)
    'flowControlLimitExceededBehavior': flowControlLimitExceededBehavior
        .toJson(),
};