# built_value

> Immutable value types, enum classes and JSON serialization for Dart, by code generation

Source: https://talira.ai/catalog/built-value-gbwhwcf6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / value equality](https://talira.ai/categories/libraries/value-equality), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

built_value is Google's Dart library for immutable value types: classes that compare equal when their fields are equal, with builders for creating and changing copies. It also provides EnumClass, classes that behave like enums, and JSON serialization for both, with immutable collections from built_collection. The code is generated by built_value_generator through [build_runner](https://talira.ai/catalog/build-runner-snjaeg1d.md), once or in watch mode. It came out of the same problems as AutoValue for Java and is used on client and server alike.

## Links

- GitHub: https://github.com/google/built_value.dart
- Docs: https://pub.dev/documentation/built_value/latest/built_value/built_value-library.html

## Problems it solves

- make immutable model classes in Dart without writing equality by hand
- serialize Dart objects to JSON with generated code
- enums with methods and serialization in Flutter

## Features

- Immutable value types with builders
- EnumClass: classes that behave like enums
- JSON serialization for value types and enums
- Immutable collections through built_collection
- Code generated with build_runner, one-off or in watch mode

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.46, adoption 0.59, momentum 0.26, community 0.70, backing 0.55, extensibility 0.00.

- last commit 2 months ago
- 2 commits in the last 90 days
- latest release v8.13.0 2 months ago
- 884 GitHub stars
- 56 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [build_runner](https://talira.ai/catalog/build-runner-snjaeg1d.md)

## Alternatives

- [Freezed](https://talira.ai/catalog/freezed-pym7c99a.md): Code generation for immutable data classes and unions in Dart
- [equatable](https://talira.ai/catalog/equatable-nggpq8v5.md): A Dart package that helps to implement value based equality without needing to explicitly override == and hashCode

## Sources

[^1]: https://github.com/google/built_value.dart/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
