JsonIterableX<T> extension


Iterable helpers

Convenience JSON encoding helpers for Iterable implementations.

on

Properties

encodeWithIndent String

Available on Iterable<T>, provided by the JsonIterableX extension

Convenience getter mirroring the Map variant for parity.
no setter

Methods

toJsonList({JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) List

Available on Iterable<T>, provided by the JsonIterableX extension

Converts this iterable to a JSON-encodable List.
toJsonString({String? indent, JsonOptions options = const JsonOptions(), Object? toEncodable(dynamic object)?}) String

Available on Iterable<T>, provided by the JsonIterableX extension

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