toJson method
Implementation
Map<String, dynamic> toJson() {
final listener = this.listener;
final policyNames = this.policyNames;
return {
if (listener != null) 'Listener': listener,
if (policyNames != null) 'PolicyNames': policyNames,
};
}