Dimension.fromJson constructor
Dimension.fromJson(
- Map json_
Implementation
Dimension.fromJson(core.Map json_)
: this(
magnitude: json_.containsKey('magnitude')
? (json_['magnitude'] as core.num).toDouble()
: null,
unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
);