Add Serializable to simplify the creation of typed API based on js-interop