GoogleCloudAiplatformV1TokensInfo.fromJson constructor

GoogleCloudAiplatformV1TokensInfo.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1TokensInfo.fromJson(core.Map json_)
    : this(
        tokenIds: json_.containsKey('tokenIds')
            ? (json_['tokenIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tokens: json_.containsKey('tokens')
            ? (json_['tokens'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );