GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.fromJson constructor

GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.fromJson(core.Map json_)
    : this(
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => (value as core.num).toDouble())
                .toList()
            : null,
      );