toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destinations = this.destinations;
  final includeExecutionData = this.includeExecutionData;
  final level = this.level;
  return {
    if (destinations != null) 'destinations': destinations,
    if (includeExecutionData != null)
      'includeExecutionData': includeExecutionData,
    if (level != null) 'level': level.toValue(),
  };
}