resolve/safe_convert
library
Functions
-
asBool(Map<String, dynamic>? json, String key, {bool defaultValue = false})
→ bool
-
-
asDouble(Map<String, dynamic>? json, String key, {double defaultValue = 0.0})
→ double
-
-
asInt(Map<String, dynamic>? json, String key, {int defaultValue = 0})
→ int
-
-
asList(Map<String, dynamic>? json, String key, {List? defaultValue})
→ List
-
-
asListInt(Map<String, dynamic>? json, String key, {List? defaultValue})
→ List<int>
-
-
asListString(Map<String, dynamic>? json, String key, {List? defaultValue})
→ List<String>
-
-
asMap(Map<String, dynamic>? json, String key, {Map<String, dynamic>? defaultValue})
→ Map<String, dynamic>
-
-
asString(Map<String, dynamic>? json, String key, {String defaultValue = ""})
→ String
-
-
asT<T>(Map<String, dynamic>? json, String key, {T? defaultValue})
→ T
-
-
toBool(dynamic value, {bool defaultValue = false})
→ bool
-
-
toDouble(dynamic value, {double defaultValue = 0.0})
→ double
-
-
toInt(dynamic value, {int defaultValue = 0})
→ int
-
-
toList(dynamic value, {List? defaultValue})
→ List
-
-
toMap(dynamic value, {Map<String, dynamic>? defaultValue})
→ Map<String, dynamic>
-
-
toString(dynamic value, {String defaultValue = ""})
→ String
-