AckGeneratedJson class final

Generator-support marker applied to Ack-generated model classes.

This is not part of the user-facing annotation API. ack_generator emits AckInfer.jsonSerializable so the internal JSON builder can delegate structural mapping to json_serializable without a literal @JsonSerializable annotation that the ordinary builder would also claim.

The marker must hold a real JsonSerializable constant because JsonSerializableGenerator.generateForAnnotatedElementmergeConfig reads annotation fields via ConstantReader, and source_gen's null reader throws UnsupportedError. That is why json_annotation is a runtime dependency of this package.

Constructors

AckGeneratedJson({JsonSerializable config = const JsonSerializable(includeIfNull: false)})
Creates the internal JSON-mapping marker.
const

Properties

config → JsonSerializable
Fixed json_serializable configuration owned by Ack.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited