testObjectToJson function

dynamic testObjectToJson(
  1. dynamic object
)

A test helper that serializes objects to JSON before passing it to EndpointDispatch. Used by the generated code.

Implementation

dynamic testObjectToJson(dynamic object) {
  return jsonDecode(SerializationManager.encodeForProtocol(object));
}