MLTrainingMetadata constructor

MLTrainingMetadata({
  1. ModelType? modelType,
  2. ModelFramework? modelFramework,
  3. bool? draft,
  4. Iterable<MLTrainingVersion>? versions,
})

Implementation

factory MLTrainingMetadata({
  $7.ModelType? modelType,
  $7.ModelFramework? modelFramework,
  $core.bool? draft,
  $core.Iterable<MLTrainingVersion>? versions,
}) {
  final $result = create();
  if (modelType != null) {
    $result.modelType = modelType;
  }
  if (modelFramework != null) {
    $result.modelFramework = modelFramework;
  }
  if (draft != null) {
    $result.draft = draft;
  }
  if (versions != null) {
    $result.versions.addAll(versions);
  }
  return $result;
}