Rule.fromJson constructor
Implementation
factory Rule.fromJson(Map<String, dynamic> json) {
return Rule(
name: json['Name'] as String,
priority: json['Priority'] as int,
statement: Statement.fromJson(json['Statement'] as Map<String, dynamic>),
visibilityConfig: VisibilityConfig.fromJson(
json['VisibilityConfig'] as Map<String, dynamic>),
action: json['Action'] != null
? RuleAction.fromJson(json['Action'] as Map<String, dynamic>)
: null,
overrideAction: json['OverrideAction'] != null
? OverrideAction.fromJson(
json['OverrideAction'] as Map<String, dynamic>)
: null,
);
}