RuleGroup.fromJson constructor
RuleGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RuleGroup.fromJson(Map<String, dynamic> json) {
return RuleGroup(
arn: json['ARN'] as String,
capacity: json['Capacity'] as int,
id: json['Id'] as String,
name: json['Name'] as String,
visibilityConfig: VisibilityConfig.fromJson(
json['VisibilityConfig'] as Map<String, dynamic>),
description: json['Description'] as String?,
rules: (json['Rules'] as List?)
?.whereNotNull()
.map((e) => Rule.fromJson(e as Map<String, dynamic>))
.toList(),
);
}