TrainingRun.fromJson constructor

TrainingRun.fromJson(
  1. Map json_
)

Implementation

TrainingRun.fromJson(core.Map json_)
    : this(
        classLevelGlobalExplanations:
            json_.containsKey('classLevelGlobalExplanations')
                ? (json_['classLevelGlobalExplanations'] as core.List)
                    .map((value) => GlobalExplanation.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        dataSplitResult: json_.containsKey('dataSplitResult')
            ? DataSplitResult.fromJson(json_['dataSplitResult']
                as core.Map<core.String, core.dynamic>)
            : null,
        evaluationMetrics: json_.containsKey('evaluationMetrics')
            ? EvaluationMetrics.fromJson(json_['evaluationMetrics']
                as core.Map<core.String, core.dynamic>)
            : null,
        modelLevelGlobalExplanation: json_
                .containsKey('modelLevelGlobalExplanation')
            ? GlobalExplanation.fromJson(json_['modelLevelGlobalExplanation']
                as core.Map<core.String, core.dynamic>)
            : null,
        results: json_.containsKey('results')
            ? (json_['results'] as core.List)
                .map((value) => IterationResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        trainingOptions: json_.containsKey('trainingOptions')
            ? TrainingOptions.fromJson(json_['trainingOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        trainingStartTime: json_.containsKey('trainingStartTime')
            ? json_['trainingStartTime'] as core.String
            : null,
        vertexAiModelId: json_.containsKey('vertexAiModelId')
            ? json_['vertexAiModelId'] as core.String
            : null,
        vertexAiModelVersion: json_.containsKey('vertexAiModelVersion')
            ? json_['vertexAiModelVersion'] as core.String
            : null,
      );