I refactored _handleSwiftcall() to accept more general method calls.
Summary:
I introduced Serializable class to indicate the dataclasses that are able to converted to JSON strings. All the public methods should have parameters that are JSONifiable by itself or an instance of Serializable.
_parseArgs() inspects the function signature of the public API methods, and converts arguments from JSON strings to concrete dataclass instances in the parameter type is Serializable.
However, I have not tested the actual behavior yet...
I refactored
_handleSwiftcall()
to accept more general method calls.Summary:
Serializable
class to indicate the dataclasses that are able to converted to JSON strings. All the public methods should have parameters that are JSONifiable by itself or an instance ofSerializable
._parseArgs()
inspects the function signature of the public API methods, and converts arguments from JSON strings to concrete dataclass instances in the parameter type isSerializable
.However, I have not tested the actual behavior yet...
This closes #139.