SerializableMap class

Interface that should be implemented by all the generated serializable classes

Constructors

SerializableMap()
const

Properties

entries → Iterable<MapEntry>
The map entries of this.
read-only
isEmpty → bool
check if the object keys is empty
read-only
isNotEmpty → bool
check if the object keys is empty
read-only
keys → Iterable
Returns the field names of the Object
read-only
length → int
return the length of keys
read-only
values → Iterable
return the attributes values
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addAll(Map map) → void
Add all the values the the map into the object.
addEntries(Iterable<MapEntry> newEntries) → void
Adds all key/value pairs of newEntries to this map. [...]
cast<RK, RV>() → Map<RK, RV>
Provides a view of this map as having RK keys and RV instances, if necessary. [...]
clear() → void
Sets all the attributes values to null.
containsKey(Object key) → bool
Checks if the object has any attribute with the name of key
containsValue(Object value) → bool
Check if any of the attributes contains the value.
forEach(void f(dynamic attribute, dynamic value)) → void
runs function f for each attribute-value pair
fromMap(Map map) → void
Add all the values the the map into the current object. Is the same as addAll
map<K2, V2>(MapEntry<K2, V2> f(dynamic key, dynamic value)) → Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given f function.
putIfAbsent(dynamic key, dynamic ifAbsent()) → dynamic
does nothing
remove(Object attribute) → dynamic
Sets the attribute value to null
removeWhere(bool predicate(dynamic key, dynamic value)) → void
Removes all entries of this map that satisfy the given predicate.
toMap() → Map
Create a Map from the values of the object.
update(dynamic key, dynamic update(dynamic value), { dynamic ifAbsent() }) → dynamic
Updates the value for the provided key. [...]
updateAll(dynamic update(dynamic key, dynamic value)) → void
Updates all values. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited
operator [](Object key) → dynamic
Returns the value for the given key or null if key is not in the map.
inherited
operator []=(dynamic key, dynamic value) → void
Associates the key with the given value.
inherited