Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dart Firestore Class GeneratorNew to Visual Studio Code? Get it now.
Dart Firestore Class Generator

Dart Firestore Class Generator

cas van luijtelaar

|
5,409 installs
| (3) | Free
Generate dart data classes from Firebase Firestore documents
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

A Firestore data class generator for Dart.

Automatically generate a dart data class directly from a Firebase Firestore document.

Features

Generate custom classes that support all the base firestore types, as well as custom types.

create an empty dart file, add your variables and run the Dart: Generate Firestore data class command using ctrl+shift+P or F1

demo gif

what it generates:

  • constructor that automatically adds important firestore methods
  • fromFirestore and fromMap factories
  • toMap function that for uploading to firestore
  • copyWith method
  • overwrites ==, toString and hashcode methods

Known Issues

  • No support yet for nested Lists and Maps

Get involved!

this was a weekend project and is in no way finished yet. If you find any bugs or want to contribute, let me know on GitHub

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft