AvailableFeatures.fromJson constructor

AvailableFeatures.fromJson(
  1. Map<String, dynamic> json
)

Converts a map into an AvailableFeatures object.

Implementation

factory AvailableFeatures.fromJson(Map<String, dynamic> json) =>
    AvailableFeatures(
      isLocationAttachmentAvailable: json["isLocationAttachmentEnabled"],
      isClearChatAvailable: json["isClearChatEnabled"],
      isDeleteChatAvailable: json["isDeleteChatEnabled"],
      isVideoAttachmentAvailable: json["isVideoAttachmentEnabled"],
      isOneToOneCallAvailable: json["isOneToOneCallEnabled"],
      isTranslationAvailable: json["isTranslationEnabled"],
      isViewAllMediaAvailable: json["isViewAllMediaEnabled"],
      isDocumentAttachmentAvailable: json["isDocumentAttachmentEnabled"],
      isGroupCallAvailable: json["isGroupCallEnabled"],
      isRecentChatSearchAvailable: json["isRecentChatSearchEnabled"],
      isImageAttachmentAvailable: json["isImageAttachmentEnabled"],
      isGroupChatAvailable: json["isGroupChatEnabled"],
      isContactAttachmentAvailable: json["isContactAttachmentEnabled"],
      isStarMessageAvailable: json["isStarMessageEnabled"],
      isAttachmentAvailable: json["isAttachmentEnabled"],
      isAudioAttachmentAvailable: json["isAudioAttachmentEnabled"],
      isBlockAvailable: json["isBlockEnabled"],
      isReportAvailable: json["isReportEnabled"],
      isDeleteMessageAvailable: json["isDeleteMessageEnabled"],
      isChatHistoryAvailable: json["isChatHistoryEnabled"],
    );