WeightQuantity.fromJson constructor

WeightQuantity.fromJson(
  1. Map json_
)

Implementation

WeightQuantity.fromJson(core.Map json_)
  : this(
      grams: (json_['grams'] as core.num?)?.toDouble(),
      userProvidedUnit: json_['userProvidedUnit'] as core.String?,
    );