toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final ruleConfiguration = this.ruleConfiguration;
  final ruleName = this.ruleName;
  return {
    'ruleConfiguration': ruleConfiguration,
    if (ruleName != null) 'ruleName': ruleName,
  };
}