JsonBoolean.parseUtf8 constructor

JsonBoolean.parseUtf8(
  1. List<int> bytes
)

Parses and returns the given UTF8-encoded bytes as a boolean.

If parsing fails, or the result is not a boolean, a FormatException is thrown.

Implementation

factory JsonBoolean.parseUtf8(List<int> bytes) {
  return JsonValue.parseUtf8(bytes);
}