jimsimon / pub_client

A library for interacting with the REST API for Pub (pub.dartlang.org).
Apache License 2.0
9 stars 10 forks source link

fix Dependencies.toJson #3

Closed huiyiqun closed 5 years ago

huiyiqun commented 5 years ago

this PR fix following error:

Unhandled exception:
type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>'
#0      Dependencies.toJson (package:pub_client/src/models.dart:144:5)
jimsimon commented 5 years ago

Thanks for the contribution! I just realized there's no test coverage for any of the toJson calls. I'll try to get those added soon.

huiyiqun commented 5 years ago

Could you please release a new version to pub with this commit included recently? so that my project could depend on it directly.

jimsimon commented 5 years ago

I'm fairly busy tonight, but I can probably get something published tomorrow.

jimsimon commented 5 years ago

Version 3.0.3 has been released with this change included.