GoogleCloudAiplatformV1GenerateContentResponse.fromJson constructor
GoogleCloudAiplatformV1GenerateContentResponse.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1GenerateContentResponse.fromJson(core.Map json_)
: this(
candidates: json_.containsKey('candidates')
? (json_['candidates'] as core.List)
.map((value) => GoogleCloudAiplatformV1Candidate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
promptFeedback: json_.containsKey('promptFeedback')
? GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback
.fromJson(json_['promptFeedback']
as core.Map<core.String, core.dynamic>)
: null,
usageMetadata: json_.containsKey('usageMetadata')
? GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
.fromJson(json_['usageMetadata']
as core.Map<core.String, core.dynamic>)
: null,
);