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 (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),
};