toJson method

Map<String, dynamic> toJson()

Implementation

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