optJSONArray method

List? optJSONArray(
  1. String name
)

Returns the value mapped by {@code name} if it exists and is a {@code JSONArray}, or null otherwise.

Implementation

List<dynamic>? optJSONArray(String name) {
  dynamic object = opt(name);
  return object is Iterable ? object.toList() : null;
}