toJson method
Implementation
Map<String, Object?> toJson() {
var addonKey = this.addonKey;
var createUrl = this.createUrl;
var description = this.description;
var editUrl = this.editUrl;
var moduleKey = this.moduleKey;
var name = this.name;
var ruleKey = this.ruleKey;
var ruleType = this.ruleType;
var viewUrl = this.viewUrl;
final json = <String, Object?>{};
if (addonKey != null) {
json[r'addonKey'] = addonKey;
}
if (createUrl != null) {
json[r'createUrl'] = createUrl;
}
if (description != null) {
json[r'description'] = description;
}
if (editUrl != null) {
json[r'editUrl'] = editUrl;
}
if (moduleKey != null) {
json[r'moduleKey'] = moduleKey;
}
if (name != null) {
json[r'name'] = name;
}
if (ruleKey != null) {
json[r'ruleKey'] = ruleKey;
}
if (ruleType != null) {
json[r'ruleType'] = ruleType.value;
}
if (viewUrl != null) {
json[r'viewUrl'] = viewUrl;
}
return json;
}