(serialized, type)
| 55 | } |
| 56 | |
| 57 | function deserializeJSON(serialized, type) { |
| 58 | const transport = new thrift.TFramedTransport(serialized); |
| 59 | const protocol = new thrift.TJSONProtocol(transport); |
| 60 | protocol.readMessageBegin(); |
| 61 | const data = new type(); |
| 62 | data[Symbol.for("read")](protocol); |
| 63 | protocol.readMessageEnd(); |
| 64 | return data; |
| 65 | } |
| 66 | |
| 67 | function createThriftObj() { |
| 68 | return new ttypes.Complex({ |
nothing calls this directly
no test coverage detected