FEATURE: Expose `Composer.serializeToTopic` in client side plugin api.

FEATURE: Expose Composer.serializeToTopic in client side plugin api.

diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index 4b6356c..d17fde9 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -55,7 +55,7 @@ import { on } from "@ember/object/evented";
 import KeyboardShortcuts from "discourse/lib/keyboard-shortcuts";
 
 // If you add any methods to the API ensure you bump up this number
-const PLUGIN_API_VERSION = "0.9.0";
+const PLUGIN_API_VERSION = "0.10.0";
 
 class PluginApi {
   constructor(version, container) {
@@ -942,6 +942,21 @@ class PluginApi {
   }
 
   /**
+   * Adds a field to topic edit serializer
+   *
+   * Example:
+   *
+   * api.serializeToTopic('key_set_in_model', 'field_name_in_payload');
+   *
+   * to keep both of them same
+   * api.serializeToTopic('field_name');
+   *
+   */
+  serializeToTopic(fieldName, property) {
+    Composer.serializeToTopic(fieldName, property);
+  }
+
+  /**
    * Adds a field to draft serializer
    *
    * Example:

GitHub sha: f9a9bd13