ZValueObject top-level constant

Zorphy const ZValueObject

Annotation alias for a value object: @ZValueObject expands to @Zorphy(kind: ZorphyKind.valueObject).

Value objects are immutable composition types with no identity — they do not require an id field and the zfa make pipeline generates no repository/usecase/controller/presenter for them.

@ZValueObject
abstract class $ParserConfig {
  String get separator;
  bool get trimWhitespace;
}

Implementation

const ZValueObject = Zorphy(kind: ZorphyKind.valueObject);