JsonMapX<K, V> extension


Map helpers

Convenience JSON encoding helpers for Map implementations.

on

Properties

encodeWithIndent String

Available on Map<K, V>, provided by the JsonMapX extension

Convenience getter used by ConversionException.toString().
no setter

Methods

toJsonMap({JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) Map<String, dynamic>

Available on Map<K, V>, provided by the JsonMapX extension

Converts this map to a Map<String, dynamic> with JSON-encodable values.
toJsonString({String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) String

Available on Map<K, V>, provided by the JsonMapX extension

Converts this map to a JSON string (pretty if indent is provided).