decodeAsNullableObjectList<T> method

List<T> decodeAsNullableObjectList<T>(
  1. JsonObjectNullableDecoder<T> decoder
)

Returns the JSON data decoded as an instance of List<T extends Object>.

The JSON data must be a list of JSON objects or null, otherwise it will throw a JsonDecodingError.

Implementation

List<T> decodeAsNullableObjectList<T>(JsonObjectNullableDecoder<T> decoder) {
  return wrapJsonUtilOperation(() => _decodedValue.asObjectList(decoder));
}