addEntity method

  1. @override
Future<BookletEntity> addEntity(
  1. String documentID,
  2. BookletEntity value
)
override

Implementation

@override
Future<BookletEntity> addEntity(String documentID, BookletEntity value) {
  return bookletCollection
      .doc(documentID)
      .set(value.toDocument())
      .then((_) => value);
}