SafeJsonFieldAnnotation class

Internal representation of SafeJsonField annotation data

This class holds the parsed configuration from @SafeJsonField annotations and is used internally by the code generator to create enhanced error messages.

Constructors

SafeJsonFieldAnnotation({String? description, String? expectedFormat, List<String>? commonValues, String? customParser, required bool enhancedErrors})
Creates a new SafeJsonFieldAnnotation with the specified configuration

Properties

commonValues → List<String>?
List of common/valid values for this field
final
customParser → String?
Name of a custom static parser method to use for this field
final
description → String?
Human-readable description of what this field represents
final
enhancedErrors → bool
Whether this field should use enhanced error reporting
final
expectedFormat → String?
Expected format or example value for this field
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