Custom or Unsupported Types

If you need to serialize or deserialize a type that is not supported out of the box (for example, ipaddress.IPv4Address or a domain-specific class), Dataclass Wizard provides type hooks to define custom load and dump behavior.

Type hooks allow you to extend (de)serialization without modifying the type itself, and work with or without inheritance.

See Type Hooks for details and examples.