adding toObject method
adding toObject
Merge branch 'master' of https://github.com/Somnid/flat