list method

Codable<List<T>> list()

Returns a Codable that can encode and decode a list of T.

This let's you use any format extensions with lists:

final List<Person> people = Person.codable.list().fromJson(...);
final String json = Person.codable.list().toJson(people);

Implementation

Codable<List<T>> list() => ListCodable<T>(this);