Freezed is a Dart code generator for creating immutable data classes, tagged unions, and related model types with minimal boilerplate. It generates constructors, equality, hash codes, toString, and copyWith functionality from concise class declarations. Union types can represent multiple states through separate constructors while retaining exhaustive type-safe handling. JSON serialization integrates with json_serializable, including support for generic argument factories. Project-wide or per-model options can enable or disable generated behaviors such as equality and copying. Freezed works with Dart and Flutter through the standard build_runner workflow. It is especially useful for application state, API models, and strongly typed domain objects.

Features

  • Immutable data class generation
  • Tagged union and sealed model support
  • Generated copyWith, equality, and hashCode
  • JSON serialization integration
  • Generic type serialization support
  • Dart and Flutter build_runner workflow

Project Samples

Project Activity

See All Activity >

Categories

Code Generators

Follow Freezed

Freezed Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Freezed!

Additional Project Details

Programming Language

Dart

Related Categories

Dart Code Generators

Registered

2026-10-14