GoogleCloudAiplatformV1CountTokensRequest.fromJson constructor

GoogleCloudAiplatformV1CountTokensRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1CountTokensRequest.fromJson(core.Map json_)
    : this(
        contents: json_.containsKey('contents')
            ? (json_['contents'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Content.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        instances: json_.containsKey('instances')
            ? json_['instances'] as core.List
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
      );