GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson constructor

GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson(
    core.Map json_)
    : this(
        candidatesTokenCount: json_.containsKey('candidatesTokenCount')
            ? json_['candidatesTokenCount'] as core.int
            : null,
        promptTokenCount: json_.containsKey('promptTokenCount')
            ? json_['promptTokenCount'] as core.int
            : null,
        totalTokenCount: json_.containsKey('totalTokenCount')
            ? json_['totalTokenCount'] as core.int
            : null,
      );