@override Object toJson() { return { if (consumerDestinations.isNotDefault) 'consumerDestinations': encodeList(consumerDestinations), }; }