NullsafeJsonObject extension

Null safe method extension for JSON

on

Methods

a(String key) List
Shorthand for method array.
array(String key) List
Get List value from JSON Object. For lazier person, you can use shorthand method a.
b(String key, [bool defaultValue = false]) bool
Shorthand for method boolean.
boolean(String key, [bool defaultValue = false]) bool
Get bool value from JSON Object. For lazier person, you can use shorthand method b.
f(String key, [double defaultValue = 0.0]) double
Shorthand for method float.
float(String key, [double defaultValue = 0.0]) double
Get double value from JSON Object. For lazier person, you can use shorthand method f.
i(String key, [int defaultValue = 0]) int
Shorthand for method integer.
integer(String key, [int defaultValue = 0]) int
Get integer value from JSON Object. For lazier person, you can use shorthand method i.
o(String key) Map<String, dynamic>
Shorthand for method object.
object(String key) Map<String, dynamic>
Get Map value from JSON Object. For lazier person, you can use shorthand method o.
s(String key, [String defaultValue = '']) String
Shorthand for method string.
string(String key, [String defaultValue = '']) String
Get String value from JSON Object. For lazier person, you can use shorthand method s.