MapStringDynamicExtension extension

on

Properties

prettyJSON String

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Generates a idented JSON string.
no setter

Methods

getDateTime(String key) DateTime

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Reads the value from the given key, and process it to returns a DateTime.
getDouble(String key) double

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Retrieves a value from the map by the provided key and converts it to a double.
getList<T>(String key, T? parser(dynamic item)) List<T>

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Tries to retrieve a value from the map by the provided key and convert it to a list of type T.
tryGetDateTime(String key) DateTime?

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Reads a value from the Map and returns it as a DateTime, if possible.
tryGetDouble(String key) double?

Available on Map<String, dynamic>, provided by the MapStringDynamicExtension extension

Tries to retrieve a value from the map by the provided key and convert it to a double.