UNPKG

veritatisdoloremque

Version:
25 lines (14 loc) 827 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [FirestoreDataConverter](./firestore_lite.firestoredataconverter.md) &gt; [toFirestore](./firestore_lite.firestoredataconverter.tofirestore.md) ## FirestoreDataConverter.toFirestore() method Called by the Firestore SDK to convert a custom model object of type `T` into a plain Javascript object (suitable for writing directly to the Firestore database). Used with , and . <b>Signature:</b> ```typescript toFirestore(modelObject: T): DocumentData; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | modelObject | T | | <b>Returns:</b> [DocumentData](./firestore_lite.documentdata.md)