NutrientQuantityRollup.fromJson constructor

NutrientQuantityRollup.fromJson(
  1. Map json_
)

Implementation

NutrientQuantityRollup.fromJson(core.Map json_)
  : this(
      nutrient: json_['nutrient'] as core.String?,
      quantity: json_.containsKey('quantity')
          ? WeightQuantityRollup.fromJson(
              json_['quantity'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );