JMap class

A wrapper around a Map<String, dynamic>.

Constructors

JMap.new(Map<String, dynamic>? map, {required bool ignoreCase})

Properties

count int
no setter
hashCode int
The hash code for this object.
no setterinherited
ignoreCase bool
final
isEmpty bool
no setter
isNotEmpty bool
no setter
length int
Length of this map.
no setter
map Map<String, dynamic>
Returns the internal map.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsKey(String key) bool
Returns if the map contains the key.
deepClone() JMap
getBool(String key) bool
Gets a bool or false.
getBoolOrNull(String key) bool?
Gets a nullable bool.
getDescription(String key) String
Returns value.toString() if it exists. Otherwise, returns an empty string.
getDouble(String key) double
Gets a double or 0.
getDoubleOrNull(String key) double?
Gets a nullable double.
getInt(String key) int
Gets an int or 0.
getIntOrNull(String key) int?
Gets a nullable int.
getJList(String key) JList
Gets a JList that can be empty.
getJListOrNull(String key) JList?
Gets a nullable JList.
getJMap(String key) JMap
Gets a JMap that can be empty.
getJMapOrNull(String key) JMap?
Gets a nullable JMap.
getJmapOrNullWithPath(List<String> path) JMap?
getObject(String key) Object?
Get a nullable object with the given key.
getString(String key) String
Gets a String or ''.
getStringOrNull(String key) String?
Gets a nullable String.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited