toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (driftThresholds.isNotDefault)
    'driftThresholds': {
      for (final e in driftThresholds.entries) e.key: e.value.toJson(),
    },
  if (attributionScoreDriftThresholds.isNotDefault)
    'attributionScoreDriftThresholds': {
      for (final e in attributionScoreDriftThresholds.entries)
        e.key: e.value.toJson(),
    },
  'defaultDriftThreshold': ?defaultDriftThreshold?.toJson(),
};