parse static method

JsonArray parse({
  1. required String key,
  2. required String content,
  3. int depth = 1,
})

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

Implementation

static JsonArray parse({
  required String key,
  required String content,
  int depth = 1,
}) {
  final data = content.decodeJsonArray(maxDepth: depth).toList();
  return JsonArray<dynamic>(
    key: key,
    data: data,
  );
}