JsonObject<T extends JsonModel> class
A class representing a JSON object field.
This class extends JsonField to handle objects of type T
which extends JsonModel.
It provides methods for setting and getting values, converting to JSON,
and accessing nested fields within the object.
Constructors
- JsonObject(String fieldName)
- Constructs an instance of JsonObject.
Properties
- error ↔ String?
-
Error message associated with the field.
getter/setter pairinherited
- fieldName → String
-
The name of the field.
finalinherited
- hasError → bool
-
Checks if the field has an error.
no setterinherited
- hashCode → int
-
Overrides the hash code.
no setterinherited
- hasInformation → bool
-
Checks if the field has informational message.
no setterinherited
- hasWarning → bool
-
Checks if the field has a warning.
no setterinherited
- information ↔ String?
-
Informational message associated with the field.
getter/setter pairinherited
- rawValue ↔ T?
-
The raw value of the field.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
Gets the value of the JSON object field.
getter/setter pairoverride
- warning ↔ String?
-
Warning message associated with the field.
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> ? -
Converts the object to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Overrides the equality operator.
inherited
-
operator [](
String name) → dynamic - Gets the value of a nested field by name.
-
operator []=(
String name, dynamic value) → void - Sets the value of a nested field by name.