toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'enable': ?enable,
  'ruleVisibility': ?ruleVisibility,
  if (thresholdConfigs.isNotDefault)
    'thresholdConfigs': [for (final i in thresholdConfigs) i.toJson()],
};