NullsafeJsonArray extension
Null safe method extension for JSON array
- on
Methods
-
a(
int index) → List - Shorthand for method array.
-
array(
int index) → List - Get List value from JSON Array. For lazier person, you can use shorthand method a.
-
b(
int index, [bool defaultValue = false]) → bool - Shorthand for method boolean.
-
boolean(
int index, [bool defaultValue = false]) → bool - Get bool value from JSON Array. For lazier person, you can use shorthand method b.
-
f(
int index, [double defaultValue = 0.0]) → double - Shorthand for method float.
-
float(
int index, [double defaultValue = 0.0]) → double - Get double value from JSON Array. For lazier person, you can use shorthand method f.
-
i(
int index, [int defaultValue = 0]) → int - Shorthand for method integer.
-
integer(
int index, [int defaultValue = 0]) → int - Get int value from JSON Array. For lazier person, you can use shorthand method i.
-
o(
int index) → Map< String, dynamic> - Shorthand for method object.
-
object(
int index) → Map< String, dynamic> - Get Map value from JSON Array. For lazier person, you can use shorthand method o.
-
s(
int index, [String defaultValue = '']) → String - Shorthand for method string.
-
string(
int index, [String defaultValue = '']) → String - Get String value from JSON Array. For lazier person, you can use shorthand method s.