toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final eventCondition = this.eventCondition;
  final segmentCondition = this.segmentCondition;
  final segmentDimensions = this.segmentDimensions;
  return {
    if (eventCondition != null) 'EventCondition': eventCondition,
    if (segmentCondition != null) 'SegmentCondition': segmentCondition,
    if (segmentDimensions != null) 'segmentDimensions': segmentDimensions,
  };
}