ChannelResponse constructor

ChannelResponse({
  1. bool? autoTranslationEnabled,
  2. String? autoTranslationLanguage,
  3. bool? blocked,
  4. required String cid,
  5. ChannelConfigWithInfo? config,
  6. int? cooldown,
  7. required DateTime createdAt,
  8. UserObject? createdBy,
  9. Map<String, Object> custom = const {},
  10. DateTime? deletedAt,
  11. required bool disabled,
  12. required bool frozen,
  13. bool? hidden,
  14. DateTime? hideMessagesBefore,
  15. required String id,
  16. DateTime? lastMessageAt,
  17. int? memberCount,
  18. List<ChannelMember> members = const [],
  19. DateTime? muteExpiresAt,
  20. bool? muted,
  21. List<String> ownCapabilities = const [],
  22. String? team,
  23. DateTime? truncatedAt,
  24. UserObject? truncatedBy,
  25. required String type,
  26. required DateTime updatedAt,
})

Returns a new ChannelResponse instance.

Implementation

ChannelResponse({
  this.autoTranslationEnabled,
  this.autoTranslationLanguage,
  this.blocked,
  required this.cid,
  this.config,
  this.cooldown,
  required this.createdAt,
  this.createdBy,
  this.custom = const {},
  this.deletedAt,
  required this.disabled,
  required this.frozen,
  this.hidden,
  this.hideMessagesBefore,
  required this.id,
  this.lastMessageAt,
  this.memberCount,
  this.members = const [],
  this.muteExpiresAt,
  this.muted,
  this.ownCapabilities = const [],
  this.team,
  this.truncatedAt,
  this.truncatedBy,
  required this.type,
  required this.updatedAt,
});