Dimension.fromJson constructor

Dimension.fromJson(
  1. 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,
      );