JsonNumber class

Inheritance

Constructors

JsonNumber(num value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value num
The inner value, may contain Json objects in maps or lists
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool shallow = false}) Object?
Returns a serializable Json value. if shallow, it will not serialize inner Json values
inherited
toJsonShallow() Object?
Returns the inner json value
inherited
toString() String
A string representation of this object.
inherited
when<T>({required T map(Map<String, Json>), required T list(List<Json>), required T number(num), required T boolean(bool), required T str(String), required T none(Null)}) → T
Executes the given callback when [this.value is of the type parameter.
inherited

Operators

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