List<T> convertTo<T>(T Function(Map) fromJson) => documents.map((d) => d.convertTo<T>(fromJson)).toList();