toJson method
Implementation
@override
Object toJson() => {
if (linearBuckets case final linearBuckets?)
'linearBuckets': linearBuckets.toJson(),
if (exponentialBuckets case final exponentialBuckets?)
'exponentialBuckets': exponentialBuckets.toJson(),
if (explicitBuckets case final explicitBuckets?)
'explicitBuckets': explicitBuckets.toJson(),
};