decodeList<I> method

  1. @override
List<I> decodeList<I>({
  1. Decodable<I>? using,
})
override

Decodes the data as a list of elements.

Optionally takes a Decodable to decode the elements of the list.

Implementation

@override
List<I> decodeList<I>({Decodable<I>? using}) {
  try {
    return _decodeList(_value as List, using);
  } on TypeError {
    throw CodableException.unexpectedType(expected: 'List<$I>', actual: '${_value.runtimeType}', data: _value);
  }
}