add method

  1. @override
Future<DocumentModel> add(
  1. DocumentModel value
)
override

Implementation

@override
Future<DocumentModel> add(DocumentModel value) {
  return documentCollection
      .doc(value.documentID)
      .set(value.toEntity(appId: appId).toDocument())
      .then((_) => value);
}