VoluntaryNutritionFact.fromJson constructor

VoluntaryNutritionFact.fromJson(
  1. Map json_
)

Implementation

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