JsonDouble class

A JSON field that handles double-precision floating-point values.

The JsonDouble class extends JsonField<double> and provides functionality to parse and serialize double values from JSON data.

Example Usage:

// Creating a JsonDouble instance with the field name "price"
JsonDouble priceField = JsonDouble("price");

// Setting the value using a double
priceField.value = 19.99;

// Setting the value using a string that can be parsed to a double
priceField.value = "29.99";

// Getting the double value (returns 29.99)
double price = priceField.value;
Inheritance

Constructors

JsonDouble(String fieldName)
Creates a new JsonDouble with the given fieldName.

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 double?
The raw value of the field.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
Gets the double value of this 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() double?
Converts the double field to a JSON-compatible format.
override
toString() String
A string representation of this object.
inherited

Operators

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