GetDetectorVersionResult.fromJson constructor
GetDetectorVersionResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDetectorVersionResult.fromJson(Map<String, dynamic> json) {
return GetDetectorVersionResult(
arn: json['arn'] as String?,
createdTime: json['createdTime'] as String?,
description: json['description'] as String?,
detectorId: json['detectorId'] as String?,
detectorVersionId: json['detectorVersionId'] as String?,
externalModelEndpoints: (json['externalModelEndpoints'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
lastUpdatedTime: json['lastUpdatedTime'] as String?,
modelVersions: (json['modelVersions'] as List?)
?.whereNotNull()
.map((e) => ModelVersion.fromJson(e as Map<String, dynamic>))
.toList(),
ruleExecutionMode:
(json['ruleExecutionMode'] as String?)?.toRuleExecutionMode(),
rules: (json['rules'] as List?)
?.whereNotNull()
.map((e) => Rule.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['status'] as String?)?.toDetectorVersionStatus(),
);
}