ModelVersionDetail.fromJson constructor
ModelVersionDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ModelVersionDetail.fromJson(Map<String, dynamic> json) {
return ModelVersionDetail(
arn: json['arn'] as String?,
createdTime: json['createdTime'] as String?,
externalEventsDetail: json['externalEventsDetail'] != null
? ExternalEventsDetail.fromJson(
json['externalEventsDetail'] as Map<String, dynamic>)
: null,
lastUpdatedTime: json['lastUpdatedTime'] as String?,
modelId: json['modelId'] as String?,
modelType: (json['modelType'] as String?)?.toModelTypeEnum(),
modelVersionNumber: json['modelVersionNumber'] as String?,
status: json['status'] as String?,
trainingDataSchema: json['trainingDataSchema'] != null
? TrainingDataSchema.fromJson(
json['trainingDataSchema'] as Map<String, dynamic>)
: null,
trainingDataSource:
(json['trainingDataSource'] as String?)?.toTrainingDataSourceEnum(),
trainingResult: json['trainingResult'] != null
? TrainingResult.fromJson(
json['trainingResult'] as Map<String, dynamic>)
: null,
);
}