toJson method
Implementation
@override
Object toJson() {
return {
if (initialBatchSamplePercentage != null)
'initialBatchSamplePercentage': initialBatchSamplePercentage,
if (followingBatchSamplePercentage != null)
'followingBatchSamplePercentage': followingBatchSamplePercentage,
if (sampleStrategy.isNotDefault)
'sampleStrategy': sampleStrategy.toJson(),
};
}