JsonFloatingNumber.parse constructor

JsonFloatingNumber.parse({
  1. required String key,
  2. required String data,
})

Construct a new JsonFloatingNumber instance by parsing the data as double value.

Implementation

factory JsonFloatingNumber.parse({
  required String key,
  required String data,
}) =>
    JsonFloatingNumber(key: key, data: double.parse(data));