VoluntaryNutritionFact.fromJson constructor

VoluntaryNutritionFact.fromJson(
  1. Map json_
)

Implementation

VoluntaryNutritionFact.fromJson(core.Map json_)
  : this(
      dailyPercentage: (json_['dailyPercentage'] as core.num?)?.toDouble(),
      name: json_['name'] as core.String?,
      value: json_.containsKey('value')
          ? FloatUnit.fromJson(
              json_['value'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );