toJson method

Map<String, dynamic> toJson()

Implementation

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