MapExt extension

on

Methods

asBean<T>(String key, dynamic toBean(Map<String, dynamic> json), {bool decode = false}) → T?

Available on Map, provided by the MapExt extension

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

Available on Map, provided by the MapExt extension

asBool(String key) bool

Available on Map, provided by the MapExt extension

asColor(String key) Color?

Available on Map, provided by the MapExt extension

asDouble(String key, {double def = 0}) double

Available on Map, provided by the MapExt extension

asDoubles(List<String> keys) double

Available on Map, provided by the MapExt extension

asInt(String key, {int defaultNum = 0}) int

Available on Map, provided by the MapExt extension

asInts(List<String> keys) int

Available on Map, provided by the MapExt extension

asList<T>(String key, [T toBean(Map<String, dynamic> json)?, bool decode = false]) List<T>

Available on Map, provided by the MapExt extension

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

Available on Map, provided by the MapExt extension

asMap(String key) Map<String, dynamic>?

Available on Map, provided by the MapExt extension

asNum(String key) num

Available on Map, provided by the MapExt extension

asString(String key) String

Available on Map, provided by the MapExt extension

asStrings(List<String> keys) String

Available on Map, provided by the MapExt extension

put(String key, Object? value) Map

Available on Map, provided by the MapExt extension