AvailableFeatures constructor
AvailableFeatures({
- bool? isLocationAttachmentAvailable,
- bool? isClearChatAvailable,
- bool? isDeleteChatAvailable,
- bool? isVideoAttachmentAvailable,
- bool? isOneToOneCallAvailable,
- bool? isTranslationAvailable,
- bool? isViewAllMediaAvailable,
- bool? isDocumentAttachmentAvailable,
- bool? isGroupCallAvailable,
- bool? isRecentChatSearchAvailable,
- bool? isImageAttachmentAvailable,
- bool? isGroupChatAvailable,
- bool? isContactAttachmentAvailable,
- bool? isStarMessageAvailable,
- bool? isAttachmentAvailable,
- bool? isAudioAttachmentAvailable,
- bool? isBlockAvailable,
- bool? isReportAvailable,
- bool? isDeleteMessageAvailable,
- bool? isChatHistoryAvailable,
Constructs an AvailableFeatures instance from a JSON map.
The constructor uses platform checks to determine the correct keys to use for initializing the instance variables. This allows for flexible JSON structures that may vary between platforms (iOS and Android).
json
: The JSON map containing the feature flags.
Implementation
AvailableFeatures({
this.isLocationAttachmentAvailable,
this.isClearChatAvailable,
this.isDeleteChatAvailable,
this.isVideoAttachmentAvailable,
this.isOneToOneCallAvailable,
this.isTranslationAvailable,
this.isViewAllMediaAvailable,
this.isDocumentAttachmentAvailable,
this.isGroupCallAvailable,
this.isRecentChatSearchAvailable,
this.isImageAttachmentAvailable,
this.isGroupChatAvailable,
this.isContactAttachmentAvailable,
this.isStarMessageAvailable,
this.isAttachmentAvailable,
this.isAudioAttachmentAvailable,
this.isBlockAvailable,
this.isReportAvailable,
this.isDeleteMessageAvailable,
this.isChatHistoryAvailable,
});