toJson method

Map<String, dynamic> toJson()

Mapping Configuration to json.

Implementation

Map<String, dynamic> toJson() => {
      'applicationCode': applicationCode,
      'pluginVersion': pluginVersion,
      'inAppChatEnabled': inAppChatEnabled,
      'fullFeaturedInAppsEnabled': fullFeaturedInAppsEnabled,
      'androidSettings': androidSettings?.toJson(),
      'iosSettings': iosSettings?.toJson(),
      'privacySettings': privacySettings?.toJson(),
      'notificationCategories':
          (notificationCategories != null) ? notificationCategories!.map((e) => e.toJson()).toList() : null,
      'defaultMessageStorage': defaultMessageStorage,
      'webRTCUI': webRTCUI?.toJson(),
      // ignore: deprecated_member_use_from_same_package
      'inAppChatCustomization': inAppChatCustomization?.toJson(),
      'inAppChatExtras': inAppChatExtras?.toJson(),
    };