JsonField<T> class abstract

An abstract class representing a JSON field.

This class provides the basic structure and functionality for handling JSON fields, including field name, error handling, and value management.

Implementers

Constructors

JsonField(String fieldName)
Constructs an instance of JsonField.

Properties

error String?
Error message associated with the field.
getter/setter pair
fieldName String
The name of the field.
final
hasError bool
Checks if the field has an error.
no setter
hashCode int
Overrides the hash code.
no setteroverride
hasInformation bool
Checks if the field has informational message.
no setter
hasWarning bool
Checks if the field has a warning.
no setter
information String?
Informational message associated with the field.
getter/setter pair
rawValue ↔ T?
The raw value of the field.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
The value of the field.
getter/setter pair
warning String?
Warning message associated with the field.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → dynamic
Converts the field value to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Overrides the equality operator.
override