toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final cacheTokensDetails = this.cacheTokensDetails;
  final cachedContentTokenCount = this.cachedContentTokenCount;
  final candidatesTokenCount = this.candidatesTokenCount;
  final candidatesTokensDetails = this.candidatesTokensDetails;
  final promptTokenCount = this.promptTokenCount;
  final promptTokensDetails = this.promptTokensDetails;
  final thoughtsTokenCount = this.thoughtsTokenCount;
  final toolUsePromptTokenCount = this.toolUsePromptTokenCount;
  final toolUsePromptTokensDetails = this.toolUsePromptTokensDetails;
  final totalTokenCount = this.totalTokenCount;
  final trafficType = this.trafficType;
  return {
    'cacheTokensDetails': ?cacheTokensDetails,
    'cachedContentTokenCount': ?cachedContentTokenCount,
    'candidatesTokenCount': ?candidatesTokenCount,
    'candidatesTokensDetails': ?candidatesTokensDetails,
    'promptTokenCount': ?promptTokenCount,
    'promptTokensDetails': ?promptTokensDetails,
    'thoughtsTokenCount': ?thoughtsTokenCount,
    'toolUsePromptTokenCount': ?toolUsePromptTokenCount,
    'toolUsePromptTokensDetails': ?toolUsePromptTokensDetails,
    'totalTokenCount': ?totalTokenCount,
    'trafficType': ?trafficType,
  };
}