nutriments property

  1. @JsonKey(name: 'nutriments', includeIfNull: false, toJson: Nutriments.toJsonHelper)
Nutriments? get nutriments

Implementation

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

Implementation

set nutriments(Nutriments? nutriments) {
  if (nutriments == null) {
    _noNutritionData = true;
  }
  _nutriments = nutriments;
}