GoogleCloudAiplatformV1EmbedContentResponse.fromJson constructor
GoogleCloudAiplatformV1EmbedContentResponse.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1EmbedContentResponse.fromJson(core.Map json_)
: this(
embedding: json_.containsKey('embedding')
? GoogleCloudAiplatformV1EmbedContentResponseEmbedding.fromJson(
json_['embedding'] as core.Map<core.String, core.dynamic>,
)
: null,
truncated: json_['truncated'] as core.bool?,
usageMetadata: json_.containsKey('usageMetadata')
? GoogleCloudAiplatformV1UsageMetadata.fromJson(
json_['usageMetadata'] as core.Map<core.String, core.dynamic>,
)
: null,
);