SearchRecord.fromJson constructor

SearchRecord.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SearchRecord.fromJson(Map<String, dynamic> json) {
  return SearchRecord(
    endpoint: json['Endpoint'] != null
        ? Endpoint.fromJson(json['Endpoint'] as Map<String, dynamic>)
        : null,
    experiment: json['Experiment'] != null
        ? Experiment.fromJson(json['Experiment'] as Map<String, dynamic>)
        : null,
    featureGroup: json['FeatureGroup'] != null
        ? FeatureGroup.fromJson(json['FeatureGroup'] as Map<String, dynamic>)
        : null,
    modelPackage: json['ModelPackage'] != null
        ? ModelPackage.fromJson(json['ModelPackage'] as Map<String, dynamic>)
        : null,
    modelPackageGroup: json['ModelPackageGroup'] != null
        ? ModelPackageGroup.fromJson(
            json['ModelPackageGroup'] as Map<String, dynamic>)
        : null,
    pipeline: json['Pipeline'] != null
        ? Pipeline.fromJson(json['Pipeline'] as Map<String, dynamic>)
        : null,
    pipelineExecution: json['PipelineExecution'] != null
        ? PipelineExecution.fromJson(
            json['PipelineExecution'] as Map<String, dynamic>)
        : null,
    trainingJob: json['TrainingJob'] != null
        ? TrainingJob.fromJson(json['TrainingJob'] as Map<String, dynamic>)
        : null,
    trial: json['Trial'] != null
        ? Trial.fromJson(json['Trial'] as Map<String, dynamic>)
        : null,
    trialComponent: json['TrialComponent'] != null
        ? TrialComponent.fromJson(
            json['TrialComponent'] as Map<String, dynamic>)
        : null,
  );
}