addEntity method
Implementation
@override
Future<RoomEntity> addEntity(String documentID, RoomEntity value) {
return roomCollection
.doc(documentID)
.set(value.toDocument())
.then((_) => value)
.then((v) async {
var newValue = await getEntity(documentID);
if (newValue == null) {
return value;
} else {
return newValue;
}
});
}