GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.fromJson constructor

GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.fromJson(core.Map json_)
    : this(
        datapoint: json_.containsKey('datapoint')
            ? GoogleCloudAiplatformV1IndexDatapoint.fromJson(
                json_['datapoint'] as core.Map<core.String, core.dynamic>)
            : null,
        distance: json_.containsKey('distance')
            ? (json_['distance'] as core.num).toDouble()
            : null,
      );