DoubleWithUnit.fromJSON constructor
Implementation
DoubleWithUnit.fromJSON(Map<String, dynamic> json)
: this(
(json.containsKey('value') ? json['value'] as num : throw ArgumentError('json does not containe value'))
.toDouble(),
MesaureUnitDeserializer.fromJSON(json['unit'] as String?));