Method used for serializing data to a Map format so Firestore may write it.
Map<String, dynamic> toJson();