Jsonize class

The Jsonize class used to transform to and from json string

Constructors

Jsonize()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

decoders Map<String, ConvertInfo>
The decode functions map
final
encoders Map<String, ConvertInfo>
The encode functions map
final
jsonClassToken String
The class token (you can change this token at runtime)
getter/setter pair

Static Methods

fromJson(dynamic value, {String? jsonClassToken, String? dtClassCode, DateTimeFormat dateTimeFormat = DateTimeFormat.string, String? durationClassCode, DurationFormat durationFormat = DurationFormat.microseconds, CallbackFunction? convertCallback, dynamic exParam, bool awaitNestedFutures = false}) → dynamic
The fromJson function transforms a json string back to an object.
getClassName(Type type) String
Get the root class in case of generics
registerClass(Jsonizable object) → void
Registers a new Jsonizable class by it instance.
registerClasses(Iterable<Jsonizable> objects) → void
Registers new Jsonizable classes by it instances.
registerEnum<T>(List<T> values, {String? jsonEnumCode, EnumFormat enumFormat = EnumFormat.string, Enum? unknownEnumValue}) → void
Registers a new Enum type.
registerType(Type classType, String classTypeCode, ConvertFunction? toJsonFunc, ConvertFunction? fromJsonFunc) → void
Registers a new type to the Jsonize conversion handling.
toJson(dynamic value, {String? indent, String? jsonClassToken, String? dtClassCode, DateTimeFormat dateTimeFormat = DateTimeFormat.string, String? durationClassCode, DurationFormat durationFormat = DurationFormat.microseconds, CallbackFunction? convertCallback, dynamic exParam}) String
The toJson function transforms an object into a json string.
wait(dynamic value) → dynamic
Recursively wait for futures within complex structure