JsonMapX<K, V> extension
Map helpers
Convenience JSON encoding helpers for Map implementations.
- on
-
- Map<
K, V>
- Map<
Properties
- encodeWithIndent → String
-
Available on Map<
Convenience getter used byK, V> , provided by the JsonMapX extensionConversionException.toString().no setter
Methods
-
toJsonMap(
{JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → Map< String, dynamic> -
Available on Map<
Converts this map to aK, V> , provided by the JsonMapX extensionMap<String, dynamic>with JSON-encodable values. -
toJsonString(
{String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → String -
Available on Map<
Converts this map to a JSON string (pretty ifK, V> , provided by the JsonMapX extensionindentis provided).