toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (consumerDestinations != null)
'consumerDestinations': consumerDestinations!,
if (producerDestinations != null)
'producerDestinations': producerDestinations!,
};