JsonUtil class

Json Util.

Constructors

JsonUtil()

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 Methods

encodeObj(dynamic value) String?
Converts object value to a JSON string.
getList<T>(dynamic source) List<T>?
get List 1, 2, 3, 4, 5, 6; "\"tom\",\"tony\",\"jacky\"";
getObj<T>(String? source, T f(Map v)) → T?
Converts JSON string source to object.
getObject<T>(dynamic source, T f(Map v)) → T?
Converts JSON string or JSON map source to object.
getObjectList<T>(dynamic source, T f(Map v)) List<T>?
Converts JSON string or JSON map list source to object list.
getObjList<T>(String? source, T f(Map v)) List<T>?
Converts JSON string list source to object list.