Add toJson method.
Merge branch 'master' into transformed-collections

Conflicts:
	lib/src/data.dart