toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (aggregations != null) 'aggregations': aggregations!,
if (duration != null) 'duration': duration!,
if (filter != null) 'filter': filter!,
if (trigger != null) 'trigger': trigger!,
};