ModelDefinition.fromJson constructor

ModelDefinition.fromJson(
  1. Map json_
)

Implementation

ModelDefinition.fromJson(core.Map json_)
    : this(
        modelOptions: json_.containsKey('modelOptions')
            ? ModelDefinitionModelOptions.fromJson(
                json_['modelOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        trainingRuns: json_.containsKey('trainingRuns')
            ? (json_['trainingRuns'] as core.List)
                .map((value) => BqmlTrainingRun.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );