toJson method
Converts an AvailableFeatures instance to a JSON map.
This method serializes the AvailableFeatures instance into a JSON map, making it easy to encode the feature flags into a JSON string for storage or transmission.
Returns a JSON map representation of the AvailableFeatures instance.
Implementation
Map<String, dynamic> toJson() => {
"isLocationAttachmentEnabled": isLocationAttachmentAvailable,
"isClearChatEnabled": isClearChatAvailable,
"isDeleteChatEnabled": isDeleteChatAvailable,
"isVideoAttachmentEnabled": isVideoAttachmentAvailable,
"isOneToOneCallEnabled": isOneToOneCallAvailable,
"isTranslationEnabled": isTranslationAvailable,
"isViewAllMediaEnabled": isViewAllMediaAvailable,
"isDocumentAttachmentEnabled": isDocumentAttachmentAvailable,
"isGroupCallEnabled": isGroupCallAvailable,
"isRecentChatSearchEnabled": isRecentChatSearchAvailable,
"isImageAttachmentEnabled": isImageAttachmentAvailable,
"isGroupChatEnabled": isGroupChatAvailable,
"isContactAttachmentEnabled": isContactAttachmentAvailable,
"isStarMessageEnabled": isStarMessageAvailable,
"isAttachmentEnabled": isAttachmentAvailable,
"isAudioAttachmentEnabled": isAudioAttachmentAvailable,
"isBlockEnabled": isBlockAvailable,
"isReportEnabled": isReportAvailable,
"isDeleteMessageEnabled": isDeleteMessageAvailable,
"isChatHistoryEnabled": isChatHistoryAvailable,
};