JsonUtils class

json解析工具类

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

toJsonListT<T>(List<T>? list, Map<String, dynamic> toJsonT(T value)) String
集合对象转json
toJsonMapListT<K, T>(Map<K, List<T>?> t, Map<String, dynamic> toJsonT(T value)) String
Map集合转json
toJsonMapT<K, T>(Map<K, T> t, Map<String, dynamic> toJsonT(T value)) String
Map对象转json
toJsonT<T>(T t, Map<String, dynamic> toJsonT(T value)) String
对象转json