RadiationDoseEquivalent.fromJson constructor
If there is no matched key, returning RadiationDoseEquivalent$Sievert with 0 value
Implementation
factory RadiationDoseEquivalent.fromJson(Map<String, dynamic> json) =>
_checkJson(
_majorName,
json,
valuesAsMap,
)
? valuesAsMap.map[(json[_majorName] as Map<String, dynamic>)[_unit]]!
.withValue(
(json[_majorName] as Map<String, dynamic>)[_value] as num,
)
: RadiationDoseEquivalent.anchor();