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