GoogleCloudAiplatformV1GroundingSupport.fromJson constructor

GoogleCloudAiplatformV1GroundingSupport.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1GroundingSupport.fromJson(core.Map json_)
  : this(
      confidenceScores: (json_['confidenceScores'] as core.List?)
          ?.map((value) => (value as core.num).toDouble())
          .toList(),
      groundingChunkIndices: (json_['groundingChunkIndices'] as core.List?)
          ?.map((value) => value as core.int)
          .toList(),
      segment: json_.containsKey('segment')
          ? GoogleCloudAiplatformV1Segment.fromJson(
              json_['segment'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );