jsonEncode<T> static method

String jsonEncode<T>(
  1. Iterable<T> iterable
)

The elements of the iterable (type T) must be directly encodable by dart:convert.jsonEncode (e.g., num, String, bool, null, List, or Map with encodable keys and values).

Implementation

static String jsonEncode<T>(Iterable<T> iterable) => dc.jsonEncode(iterable.toList());