toJson method
Implementation
Map<String, dynamic> toJson() {
final eventFilter = this.eventFilter;
final segmentId = this.segmentId;
return {
if (eventFilter != null) 'EventFilter': eventFilter,
if (segmentId != null) 'SegmentId': segmentId,
};
}