toJson method
Implementation
@override
Object toJson() => {
if (tuningDatasetExampleCount.isNotDefault)
'tuningDatasetExampleCount': encodeInt64(tuningDatasetExampleCount),
if (totalTuningCharacterCount.isNotDefault)
'totalTuningCharacterCount': encodeInt64(totalTuningCharacterCount),
if (totalBillableCharacterCount.isNotDefault)
'totalBillableCharacterCount': encodeInt64(totalBillableCharacterCount),
if (totalBillableTokenCount.isNotDefault)
'totalBillableTokenCount': encodeInt64(totalBillableTokenCount),
if (tuningStepCount.isNotDefault)
'tuningStepCount': encodeInt64(tuningStepCount),
if (userInputTokenDistribution != null)
'userInputTokenDistribution': userInputTokenDistribution!.toJson(),
if (userOutputTokenDistribution != null)
'userOutputTokenDistribution': userOutputTokenDistribution!.toJson(),
if (userMessagePerExampleDistribution != null)
'userMessagePerExampleDistribution': userMessagePerExampleDistribution!
.toJson(),
if (userDatasetExamples.isNotDefault)
'userDatasetExamples': encodeList(userDatasetExamples),
if (totalTruncatedExampleCount.isNotDefault)
'totalTruncatedExampleCount': encodeInt64(totalTruncatedExampleCount),
if (truncatedExampleIndices.isNotDefault)
'truncatedExampleIndices': truncatedExampleIndices,
if (droppedExampleReasons.isNotDefault)
'droppedExampleReasons': droppedExampleReasons,
};