GoogleCloudAiplatformV1NearestNeighborQuery.fromJson constructor
GoogleCloudAiplatformV1NearestNeighborQuery.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1NearestNeighborQuery.fromJson(core.Map json_)
: this(
embedding: json_.containsKey('embedding')
? GoogleCloudAiplatformV1NearestNeighborQueryEmbedding.fromJson(
json_['embedding'] as core.Map<core.String, core.dynamic>)
: null,
entityId: json_.containsKey('entityId')
? json_['entityId'] as core.String
: null,
neighborCount: json_.containsKey('neighborCount')
? json_['neighborCount'] as core.int
: null,
parameters: json_.containsKey('parameters')
? GoogleCloudAiplatformV1NearestNeighborQueryParameters.fromJson(
json_['parameters'] as core.Map<core.String, core.dynamic>)
: null,
perCrowdingAttributeNeighborCount:
json_.containsKey('perCrowdingAttributeNeighborCount')
? json_['perCrowdingAttributeNeighborCount'] as core.int
: null,
stringFilters: json_.containsKey('stringFilters')
? (json_['stringFilters'] as core.List)
.map((value) =>
GoogleCloudAiplatformV1NearestNeighborQueryStringFilter
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);