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