nutriments property
- @JsonKey(name: 'nutriments', includeIfNull: false, toJson: Nutriments.toJsonHelper)
Implementation
@JsonKey(
name: 'nutriments', includeIfNull: false, toJson: Nutriments.toJsonHelper)
Nutriments? get nutriments => _noNutritionData == true ? null : _nutriments;
Implementation
set nutriments(Nutriments? nutriments) {
if (nutriments == null) {
_noNutritionData = true;
}
_nutriments = nutriments;
}