toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (criteria != null) 'criteria': criteria!,
if (displayName != null) 'displayName': displayName!,
if (interval != null) 'interval': interval!,
if (name != null) 'name': name!,
};