NutrientQuantity.fromJson constructor

NutrientQuantity.fromJson(
  1. Map json_
)

Implementation

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