ResolvedAttributes.fromJson constructor

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

Implementation

factory ResolvedAttributes.fromJson(Map<String, dynamic> json) {
  return ResolvedAttributes(
    autoMLJobObjective: json['AutoMLJobObjective'] != null
        ? AutoMLJobObjective.fromJson(
            json['AutoMLJobObjective'] as Map<String, dynamic>)
        : null,
    completionCriteria: json['CompletionCriteria'] != null
        ? AutoMLJobCompletionCriteria.fromJson(
            json['CompletionCriteria'] as Map<String, dynamic>)
        : null,
    problemType: (json['ProblemType'] as String?)?.toProblemType(),
  );
}