RuleDetail.fromJson constructor
RuleDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RuleDetail.fromJson(Map<String, dynamic> json) {
return RuleDetail(
arn: json['arn'] as String?,
createdTime: json['createdTime'] as String?,
description: json['description'] as String?,
detectorId: json['detectorId'] as String?,
expression: json['expression'] as String?,
language: (json['language'] as String?)?.toLanguage(),
lastUpdatedTime: json['lastUpdatedTime'] as String?,
outcomes: (json['outcomes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
ruleId: json['ruleId'] as String?,
ruleVersion: json['ruleVersion'] as String?,
);
}