MapExt extension

on

Methods

asArray2d<T>(String key, [dynamic toBean(Map json)?]) List<List<T>>?

Available on Map?, provided by the MapExt extension

Two-dimensional array 二维数组解析
asBean<T>(String key, dynamic toBean(Map json)) → T?

Available on Map?, provided by the MapExt extension

解析成 model
asBeans<T>(List<String> keys, dynamic toBean(Map json)) → T?

Available on Map?, provided by the MapExt extension

多字段解析成model
asBool(String key, [bool? defValue]) bool

Available on Map?, provided by the MapExt extension

解析成bool值
asBools(List<String> keys, [bool? defValue]) bool

Available on Map?, provided by the MapExt extension

解析成bool值
asDouble(String key, [double? defValue]) double

Available on Map?, provided by the MapExt extension

解析成double值
asDoubles(List<String> keys, [double? defValue]) double

Available on Map?, provided by the MapExt extension

多字段解析成double值
asInt(String key, [int? defValue]) int

Available on Map?, provided by the MapExt extension

解析成int值
asInts(List<String> keys, [int? defValue]) int

Available on Map?, provided by the MapExt extension

解析成ints值
asList<T>(String key, [dynamic toBean(Map json)?]) List<T>?

Available on Map?, provided by the MapExt extension

解析成List
asLists<T>(List<String> keys, [dynamic toBean(Map json)?]) List<T>?

Available on Map?, provided by the MapExt extension

多字段解析成Lists
asNum(String key) num

Available on Map?, provided by the MapExt extension

解析成int或者double值
asString(String key, [String? defValue]) String

Available on Map?, provided by the MapExt extension

单字段解析
asStrings(List<String> keys, [String? defValue]) String

Available on Map?, provided by the MapExt extension

多字段解析Strings
put(String key, Object? value) Map

Available on Map?, provided by the MapExt extension

key and value的功能
removeNull() → void

Available on Map?, provided by the MapExt extension

移除掉空的
removeNullOrEmpty() → void

Available on Map?, provided by the MapExt extension

移除null值或空值