set method

Codable<Set<T>> set()

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

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

final Set<Person> people = Person.codable.set().fromJson(...);
final String json = Person.codable.set().toJson(people);

Implementation

Codable<Set<T>> set() => SetCodable<T>(this);