DescribePredictorResponse.fromJson constructor
DescribePredictorResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribePredictorResponse.fromJson(Map<String, dynamic> json) {
return DescribePredictorResponse(
algorithmArn: json['AlgorithmArn'] as String?,
autoMLAlgorithmArns: (json['AutoMLAlgorithmArns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
creationTime: timeStampFromJson(json['CreationTime']),
datasetImportJobArns: (json['DatasetImportJobArns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
encryptionConfig: json['EncryptionConfig'] != null
? EncryptionConfig.fromJson(
json['EncryptionConfig'] as Map<String, dynamic>)
: null,
evaluationParameters: json['EvaluationParameters'] != null
? EvaluationParameters.fromJson(
json['EvaluationParameters'] as Map<String, dynamic>)
: null,
featurizationConfig: json['FeaturizationConfig'] != null
? FeaturizationConfig.fromJson(
json['FeaturizationConfig'] as Map<String, dynamic>)
: null,
forecastHorizon: json['ForecastHorizon'] as int?,
forecastTypes: (json['ForecastTypes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
hPOConfig: json['HPOConfig'] != null
? HyperParameterTuningJobConfig.fromJson(
json['HPOConfig'] as Map<String, dynamic>)
: null,
inputDataConfig: json['InputDataConfig'] != null
? InputDataConfig.fromJson(
json['InputDataConfig'] as Map<String, dynamic>)
: null,
lastModificationTime: timeStampFromJson(json['LastModificationTime']),
message: json['Message'] as String?,
performAutoML: json['PerformAutoML'] as bool?,
performHPO: json['PerformHPO'] as bool?,
predictorArn: json['PredictorArn'] as String?,
predictorExecutionDetails: json['PredictorExecutionDetails'] != null
? PredictorExecutionDetails.fromJson(
json['PredictorExecutionDetails'] as Map<String, dynamic>)
: null,
predictorName: json['PredictorName'] as String?,
status: json['Status'] as String?,
trainingParameters: (json['TrainingParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}