toJson method
Implementation
@override
Object toJson() => {
if (totalTokens.isNotDefault) 'totalTokens': totalTokens,
if (totalBillableCharacters.isNotDefault)
'totalBillableCharacters': totalBillableCharacters,
if (promptTokensDetails.isNotDefault)
'promptTokensDetails': encodeList(promptTokensDetails),
};