toJson method

Map<String, dynamic> toJson()

Implementation

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