I want to add a custom converter to a freezed class like in this answer. I tried it with this code: @freezed class NewsPost with _$NewsPost { factory NewsPost
Suppose there are two models User and City @JsonSerializable() class User { int id; String name; City? city; List<Map<String, City>>