JsonNumber.parse constructor

JsonNumber.parse(
  1. String input
)

Parses and casts the given input as a number.

If parsing fails a FormatException is thrown.

Implementation

factory JsonNumber.parse(String input) => JsonValue.parse(input);