Storage shape. The canonical form is { value, unit } — what
Quantity.toJSON() produces. The marshaller's fromStored
additionally tolerates number and string shapes so YAML
authoring doesn't have to wrap in the JSON shape (a seed can
write mass: 5 or mass: heavy directly).
Storage shape. The canonical form is
{ value, unit }— whatQuantity.toJSON()produces. The marshaller'sfromStoredadditionally toleratesnumberandstringshapes so YAML authoring doesn't have to wrap in the JSON shape (a seed can writemass: 5ormass: heavydirectly).