toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final priority = this.priority;
  final ruleId = this.ruleId;
  final action = this.action;
  final excludedRules = this.excludedRules;
  final overrideAction = this.overrideAction;
  final type = this.type;
  return {
    'Priority': priority,
    'RuleId': ruleId,
    if (action != null) 'Action': action,
    if (excludedRules != null) 'ExcludedRules': excludedRules,
    if (overrideAction != null) 'OverrideAction': overrideAction,
    if (type != null) 'Type': type.toValue(),
  };
}