dart-league / dson

dart library which converts Dart Objects into their JSON representation
Apache License 2.0
66 stars 14 forks source link

NoSuchMethodError The method 'forEach' was called on null #45

Closed mitty1987 closed 5 years ago

mitty1987 commented 5 years ago

I has a json {"code":"90009","msg":"test","resultData":null}, the resultData is an object, and the type is

$mkType = [
      () => CommonBean<LoginToken>(),
      {
        $keyCommonBean1: [() => LoginToken(), LoginToken]
      }
    ];

If resultData is not null, there has no error

luisvt commented 5 years ago

Please upgrade to the latest version