Skip to content

EventIn

The EventIn class processes incoming events, converting JSON keys to camelCase format for consistency within the application.

Properties

The EventIn instance has no set properties!

Methods

toCamelCase

EventIn : toCamelCase (

     self: EventIn
     json: table
)  -> table

Converts JSON keys from snake_case to camelCase.

processJSON

EventIn : processJSON (

     self: EventIn
     data: any
)  -> any

Processes incoming JSON data, converting keys to camelCase if the data is a table.

Functions

new

EventIn . new ()  -> ()

Creates a new instance of EventIn.