Skip to main content

Zorphy

Clean, consistent Dart entities with zero boilerplate. Zorphy generates constructors, copyWith, JSON, patch helpers, filters, and polymorphic support while keeping your models focused on intent.

What you get out of the box

Instant data classes

Generated constructors, equality, hashCode, and toString with one annotation.

JSON that fits production

Full and lean JSON, converters, defaults, and polymorphic serialization.

Safe updates

Patch objects and copyWith helpers make partial updates explicit and composable.

Query-ready fields

Filter and sort helpers with in-memory evaluation for fast prototyping.

Examples included in the repo

Basic entities, copyWith, patch
JSON and lean JSON
Enums and pattern matching
Nested objects and self-references
Polymorphic hierarchies
Generics with converters
Filters, queries, sorting
Factories and hidden constructors
Defaults, JsonKey, converters
Nullability and large hashCode