decodeAsList<E> method

E? decodeAsList<E>(
  1. String source
)

Implementation

E? decodeAsList<E>(String source) {
  if (source.startsWith('{')) {
    throw Exception('use decodeAs instead');
  }

  if (source.startsWith('[')) {
    final List list = decode(source);
    return list.convert<E>();
  }

  return null;
}