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