Added toFirebase method
1.3.0