JsonIterableX<T> extension
Iterable helpers
Convenience JSON encoding helpers for Iterable implementations.
- on
-
- Iterable<
T>
- Iterable<
Properties
- encodeWithIndent → String
-
Available on Iterable<
Convenience getter mirroring the Map variant for parity.T> , provided by the JsonIterableX extensionno setter
Methods
-
toJsonList(
{JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → List -
Available on Iterable<
Converts this iterable to a JSON-encodableT> , provided by the JsonIterableX extensionList. -
toJsonString(
{String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) → String -
Available on Iterable<
Converts this iterable to a JSON string (pretty ifT> , provided by the JsonIterableX extensionindentis provided).