@override Object toJson() => { 'featureId': featureId, if (driftThreshold.isNotDefault) 'driftThreshold': encodeDouble(driftThreshold), };