JsonInt class
JsonType for primitive int
- Inheritance
-
- Object
- PrimitieveJson<
int> - JsonInt
Constructors
- JsonInt()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSet → bool
-
Returns if value is set. If is not setted and you call
value
getter it will throw a exception.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ int
-
Return current primitive value of type
T
getter/setter pairinherited - valueOrNull → int?
-
Returns its value or null if it is not defined yet
no setterinherited
Methods
-
delete(
) → void -
delete current value and set it to null
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
int value) → void -
Set current primitive value of type
T
inherited -
setFromJson(
dynamic json) → bool -
Convert any given json to correspondig types and store it. If fails, it returns false.
inherited
-
toJson(
) → dynamic -
Convert object to json compatible types
override
-
toString(
) → String -
A string representation of this object.
inherited
-
tryParse(
dynamic source) → int? -
Try to convert to value from any given json
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited