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