toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (skewThresholds.isNotDefault)
    'skewThresholds': {
      for (final e in skewThresholds.entries) e.key: e.value.toJson(),
    },
  if (attributionScoreSkewThresholds.isNotDefault)
    'attributionScoreSkewThresholds': {
      for (final e in attributionScoreSkewThresholds.entries)
        e.key: e.value.toJson(),
    },
  if (defaultSkewThreshold case final defaultSkewThreshold?)
    'defaultSkewThreshold': defaultSkewThreshold.toJson(),
};