toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var parameters = this.parameters;
var ruleKey = this.ruleKey;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (parameters != null) {
json[r'parameters'] = parameters;
}
json[r'ruleKey'] = ruleKey;
return json;
}