BqmlTrainingRun.fromJson constructor

BqmlTrainingRun.fromJson(
  1. Map json_
)

Implementation

BqmlTrainingRun.fromJson(core.Map json_)
    : this(
        iterationResults: json_.containsKey('iterationResults')
            ? (json_['iterationResults'] as core.List)
                .map((value) => BqmlIterationResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startTime: json_.containsKey('startTime')
            ? core.DateTime.parse(json_['startTime'] as core.String)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        trainingOptions: json_.containsKey('trainingOptions')
            ? BqmlTrainingRunTrainingOptions.fromJson(json_['trainingOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );