GoogleCloudAiplatformV1DatasetStats.fromJson constructor

GoogleCloudAiplatformV1DatasetStats.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1DatasetStats.fromJson(core.Map json_)
    : this(
        totalBillableCharacterCount:
            json_.containsKey('totalBillableCharacterCount')
                ? json_['totalBillableCharacterCount'] as core.String
                : null,
        totalTuningCharacterCount:
            json_.containsKey('totalTuningCharacterCount')
                ? json_['totalTuningCharacterCount'] as core.String
                : null,
        tuningDatasetExampleCount:
            json_.containsKey('tuningDatasetExampleCount')
                ? json_['tuningDatasetExampleCount'] as core.String
                : null,
        tuningStepCount: json_.containsKey('tuningStepCount')
            ? json_['tuningStepCount'] as core.String
            : null,
        userDatasetExamples: json_.containsKey('userDatasetExamples')
            ? (json_['userDatasetExamples'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Content.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        userInputTokenDistribution:
            json_.containsKey('userInputTokenDistribution')
                ? GoogleCloudAiplatformV1DatasetDistribution.fromJson(
                    json_['userInputTokenDistribution']
                        as core.Map<core.String, core.dynamic>)
                : null,
        userMessagePerExampleDistribution:
            json_.containsKey('userMessagePerExampleDistribution')
                ? GoogleCloudAiplatformV1DatasetDistribution.fromJson(
                    json_['userMessagePerExampleDistribution']
                        as core.Map<core.String, core.dynamic>)
                : null,
        userOutputTokenDistribution:
            json_.containsKey('userOutputTokenDistribution')
                ? GoogleCloudAiplatformV1DatasetDistribution.fromJson(
                    json_['userOutputTokenDistribution']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );