toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final description = this.description;
  final eventStartCondition = this.eventStartCondition;
  final segmentStartCondition = this.segmentStartCondition;
  return {
    if (description != null) 'Description': description,
    if (eventStartCondition != null)
      'EventStartCondition': eventStartCondition,
    if (segmentStartCondition != null)
      'SegmentStartCondition': segmentStartCondition,
  };
}