toJson method

  1. @override
Object toJson()

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(),
    },
  'defaultSkewThreshold': ?defaultSkewThreshold?.toJson(),
};