infinum / flutter-plugins-japx

JSON API parser for Flutter

Home Page:https://pub.dev/packages/japx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Japx crashes on converting empty lists.

vasilich6107 opened this issue · comments

Hi.

final isArrayOfRelationships = array.first is Map<String, dynamic> &&
            _TypeIdPair.from(array.first) != null;

array.first fails on empty array so converting the list of empty entities crashes with Bad state: no element

Hello! We're facing the same problem. Can we expect it to be fixed?