FloatUnit.fromJson constructor

FloatUnit.fromJson(
  1. Map json_
)

Implementation

FloatUnit.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? (json_['amount'] as core.num).toDouble()
            : null,
        unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
      );