toJson method

Map<String, dynamic> toJson()

Implementation

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