JMap class

A wrapper around a Map<String, dynamic>.

Constructors

JMap(Map<String, dynamic>? map)

Properties

count int
no setter
hashCode int
The hash code for this object.
no setterinherited
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

allocJMap(String key) JMap
Unlike getJMap, this method creates a new JMap if the value does not exist.
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.
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