JsonEnumeratedObject<T> class
Methods
-
array<T>(String key, {T decodeFromJsonObject(JsonObject)?, Function? decoder, List? childType})
→ List<T>
-
Get List with child
T
by String key.
inherited
-
arrayNode<T>(String key, {T decodeFromJsonObject(JsonObject)?, Function? decoder, List? childType})
→ JsonArray<List<T>>
-
Get JsonArray by String key.
inherited
-
arrayNodeOrNull<T>(String key, {T decodeFromJsonObject(JsonObject)?, Function? decoder, List? childType})
→ JsonArray<List<T>>?
-
Get JsonArray or null by String key.
inherited
-
arrayOrNull<T>(String key, {T decodeFromJsonObject(JsonObject)?, Function? decoder, List? childType})
→ List<T>?
-
Get List with child
T
or null by String key.
inherited
-
boolean(String key)
→ bool
-
Get bool by String key.
inherited
-
booleanNode(String key)
→ JsonBoolean
-
Get JsonBoolean by String key.
inherited
-
booleanNodeOrNull(String key)
→ JsonBoolean?
-
Get JsonBoolean or null by String key.
inherited
-
booleanOrNull(String key)
→ bool?
-
Get bool or null by String key.
inherited
-
byKey(String key)
→ JsonNode
-
Get JsonNode by String key.
inherited
-
enumObject<T, R>({required String key, required T keyToEnumValue(String)})
→ Map<T, R>
-
Get Map<T,R> by String key.
inherited
-
enumObjectOrNull<T, R>({required String key, required T keyToEnumValue(String)})
→ Map<T, R>?
-
Get Map<T,R> by String key.
inherited
-
float(String key)
→ double
-
Get double by String key.
inherited
-
floatNode(String key)
→ JsonFloatingNumber
-
Get JsonFloatingNumber by String key.
inherited
-
floatNodeOrNull(String key)
→ JsonFloatingNumber?
-
Get JsonFloatingNumber or null by String key.
inherited
-
floatOrNull(String key)
→ double?
-
Get double or null by String key.
inherited
-
getDataAsEnumMap<T, R>({required T keyToEnumValue(String)})
→ Map<T, R>
-
Return raw (unwrapped) object data as Map<String, R>
where R is not of type JsonNode but a dart StandardType (String, bool, etc).
inherited
-
getDataAsMap<R>()
→ Map<String, R>
-
Return raw (unwrapped) object data as Map<String, R>
where R is not of type JsonNode but a dart StandardType (String, bool, etc).
inherited
-
hasKey(String key)
→ bool
-
Returns true if JSON content contains key.
inherited
-
integer(String key)
→ int
-
Get int by String key.
inherited
-
integerNode(String key)
→ JsonIntegerNumber
-
Get JsonIntegerNumber by String key.
inherited
-
integerNodeOrNull(String key)
→ JsonIntegerNumber?
-
Get JsonIntegerNumber or null by String key.
inherited
-
integerOrNull(String key)
→ int?
-
Get int or null by String key.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
object<R>(String key)
→ Map<String, R>
-
Get Map<String,R> by String key.
inherited
-
objectNode(String key)
→ JsonObject
-
Get JsonObject by String key.
inherited
-
objectNodeOrNull(String key)
→ JsonObject?
-
Get JsonObject or null by String key.
inherited
-
objectOrNull<R>(String key)
→ Map<String, R>?
-
Get Map<String,R> by String key.
inherited
-
string(String key)
→ String
-
Get String by String key.
inherited
-
stringifyWithFormatting(JsonFormattingOptions options)
→ String
-
Convert to (custom) formatted JSON String.
inherited
-
stringNode(String key)
→ JsonString
-
Get JsonString by String key.
inherited
-
stringNodeOrNull(String key)
→ JsonString?
-
Get JsonString or null by String key.
inherited
-
stringOrNull(String key)
→ String?
-
Get String or null by String key.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
Construct a new JsonObject where each key is an enumerated value.
override