@@ -309,28 +309,28 @@ enum UserRole{
309
309
@JsonSerializable (fieldRename: FieldRename .snake)
310
310
class ZulipStream {
311
311
final int streamId;
312
- final String name;
313
- final String description;
314
- final String renderedDescription;
312
+ String name;
313
+ String description;
314
+ String renderedDescription;
315
315
316
316
final int dateCreated;
317
- final int ? firstMessageId;
317
+ int ? firstMessageId;
318
318
319
- final bool inviteOnly;
320
- final bool isWebPublic; // present since 2.1, according to /api/changelog
321
- final bool historyPublicToSubscribers;
322
- final int ? messageRetentionDays;
319
+ bool inviteOnly;
320
+ bool isWebPublic; // present since 2.1, according to /api/changelog
321
+ bool historyPublicToSubscribers;
322
+ int ? messageRetentionDays;
323
323
@JsonKey (name: 'stream_post_policy' )
324
- final ChannelPostPolicy channelPostPolicy;
324
+ ChannelPostPolicy channelPostPolicy;
325
325
// final bool isAnnouncementOnly; // deprecated for `channelPostPolicy`; ignore
326
326
327
327
// TODO(server-6): `canRemoveSubscribersGroupId` added in FL 142
328
328
// TODO(server-8): in FL 197 renamed to `canRemoveSubscribersGroup`
329
329
@JsonKey (readValue: _readCanRemoveSubscribersGroup)
330
- final int ? canRemoveSubscribersGroup;
330
+ int ? canRemoveSubscribersGroup;
331
331
332
332
// TODO(server-8): added in FL 199, was previously only on [Subscription] objects
333
- final int ? streamWeeklyTraffic;
333
+ int ? streamWeeklyTraffic;
334
334
335
335
static int ? _readCanRemoveSubscribersGroup (Map <dynamic , dynamic > json, String key) {
336
336
return (json[key] as int ? )
0 commit comments