GoogleCloudAiplatformV1NearestNeighborQuery.fromJson constructor

GoogleCloudAiplatformV1NearestNeighborQuery.fromJson(
  1. 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_['entityId'] as core.String?,
      neighborCount: json_['neighborCount'] as core.int?,
      numericFilters: (json_['numericFilters'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      parameters: json_.containsKey('parameters')
          ? GoogleCloudAiplatformV1NearestNeighborQueryParameters.fromJson(
              json_['parameters'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      perCrowdingAttributeNeighborCount:
          json_['perCrowdingAttributeNeighborCount'] as core.int?,
      stringFilters: (json_['stringFilters'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudAiplatformV1NearestNeighborQueryStringFilter.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
    );