arrayOrEmpty method

JsonArray arrayOrEmpty()

Returns the value as an array, or an empty array if it is not an array.

Implementation

@pragma('vm:prefer-inline')
// ignore: prefer_const_constructors
JsonArray arrayOrEmpty() => arrayOrNull() ?? JsonArray._([]);