GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson constructor

GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson(core.Map json_)
    : this(
        approximateNeighborCount:
            json_['approximateNeighborCount'] as core.int?,
        datapoint: json_.containsKey('datapoint')
            ? GoogleCloudAiplatformV1IndexDatapoint.fromJson(
                json_['datapoint'] as core.Map<core.String, core.dynamic>)
            : null,
        fractionLeafNodesToSearchOverride:
            (json_['fractionLeafNodesToSearchOverride'] as core.num?)
                ?.toDouble(),
        neighborCount: json_['neighborCount'] as core.int?,
        perCrowdingAttributeNeighborCount:
            json_['perCrowdingAttributeNeighborCount'] as core.int?,
        rrf: json_.containsKey('rrf')
            ? GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF.fromJson(
                json_['rrf'] as core.Map<core.String, core.dynamic>)
            : null,
      );