GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson constructor

GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson(
  1. Map json_
)

Implementation

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