Skip to content

What is the proper way to send objects as arguments #49

@st-gwerner

Description

@st-gwerner

Our SignalR implementation has a lot of functions that accept a single class instance as input, in order to allow us to extend or deprecate properties easily. What's the proper way to send them over now that signalr_flutter has been updated to use a list of strings? A C# example of a typical client-to-server function call for us would look like this:

public void UserSetProperties(UserPropertiesPacket inputs) {
    if (inputs.NewFirstName != null) dowhatever();
    ...
}

In the past, just sending a dynamic of the class worked fine. I attempted converting the object to json, but that doesn't seem to function properly.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions