toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.policyId != null) {
json[r'policy_id'] = this.policyId;
} else {
json[r'policy_id'] = null;
}
if (this.policyName != null) {
json[r'policy_name'] = this.policyName;
} else {
json[r'policy_name'] = null;
}
if (this.ruleId != null) {
json[r'rule_id'] = this.ruleId;
} else {
json[r'rule_id'] = null;
}
if (this.ruleType != null) {
json[r'rule_type'] = this.ruleType;
} else {
json[r'rule_type'] = null;
}
return json;
}