toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'applicationCode': applicationCode,
    'pluginVersion': pluginVersion,
    'inAppChatEnabled': inAppChatEnabled,
    'androidSettings': (this.androidSettings !=null)? this.androidSettings!.toJson() : null,
    'iosSettings': (this.iosSettings !=null)? this.iosSettings!.toJson(): null,
    'privacySettings': (this.privacySettings !=null)? this.privacySettings!.toJson() : null,
    'notificationCategories': (this.notificationCategories !=null)? this.notificationCategories!.map((e) => e.toJson()) : null,
    'defaultMessageStorage': defaultMessageStorage
  };
}