So you changed the signature of the toJson/fromJson method. One way to catch these sorts of things is to provide annotations that this method is overriden. Then the editor can catch these sorts of issues. See http://phylotic.blogspot.com/2012/11/dart-metadata-is-your-friend.html

Its not absolutely necessary but its a bit more Dartish. Can remove if you hate it.