generate dart types (classes)

Open
#807 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter, postgresql, typescript
Domain
cli, databases

Research direction

Start by reading the existing TypeScript type-generation command and its generated output, then determine where a Dart generator would fit. Done means supabase gen types dart --schema public prints Dart classes for the public schema with JSON serialization support.

Written by the indexing model from the issue text.

Description

I want to use supabase with dart (flutter) apps and it would be cool to generate dart classes just like we can generate types/interfaces for typescript

Describe the solution you'd like
I want to run "supabase gen types dart --schema public" and it should print the dart classes with json serialization.

Describe alternatives you've considered
Currently considering to use the freezed and json_serializable packages to manually create and update the classes/types.

Dominant language
TypeScript
Stars
1.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/postgres-meta

All issues in supabase/postgres-meta

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.