$TokenUsage.fromJson constructor

$TokenUsage.fromJson(
  1. Map json_
)

Implementation

$TokenUsage.fromJson(core.Map json_)
  : this(
      cacheCount: json_['cacheCount'] as core.String?,
      candidateCount: json_['candidateCount'] as core.String?,
      promptCount: json_['promptCount'] as core.String?,
      thinkingCount: json_['thinkingCount'] as core.String?,
      toolUsePromptCount: json_['toolUsePromptCount'] as core.String?,
    );