Solution.fromJson constructor

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

Implementation

factory Solution.fromJson(Map<String, dynamic> json) {
  return Solution(
    autoMLResult: json['autoMLResult'] != null
        ? AutoMLResult.fromJson(json['autoMLResult'] as Map<String, dynamic>)
        : null,
    creationDateTime: timeStampFromJson(json['creationDateTime']),
    datasetGroupArn: json['datasetGroupArn'] as String?,
    eventType: json['eventType'] as String?,
    lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']),
    latestSolutionVersion: json['latestSolutionVersion'] != null
        ? SolutionVersionSummary.fromJson(
            json['latestSolutionVersion'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    performAutoML: json['performAutoML'] as bool?,
    performHPO: json['performHPO'] as bool?,
    recipeArn: json['recipeArn'] as String?,
    solutionArn: json['solutionArn'] as String?,
    solutionConfig: json['solutionConfig'] != null
        ? SolutionConfig.fromJson(
            json['solutionConfig'] as Map<String, dynamic>)
        : null,
    status: json['status'] as String?,
  );
}