toJson method

Map<String, dynamic> toJson()

Implementation

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