toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'banDurationSec': ?banDurationSec,
  'banThreshold': ?banThreshold?.toJson(),
  'conformAction': ?conformAction,
  'enforceOnKey': ?enforceOnKey,
  if (enforceOnKeyConfigs.isNotDefault)
    'enforceOnKeyConfigs': [for (final i in enforceOnKeyConfigs) i.toJson()],
  'enforceOnKeyName': ?enforceOnKeyName,
  'exceedAction': ?exceedAction,
  'exceedRedirectOptions': ?exceedRedirectOptions?.toJson(),
  'rateLimitThreshold': ?rateLimitThreshold?.toJson(),
};