MCPcopy Index your code
hub / github.com/chain/Core / fromJson

Method fromJson

sdk/java/src/main/java/com/chain/api/Receiver.java:48–54  ·  view source on GitHub ↗

Deserializes a Receiver from JSON. @param json a JSON-serialized Receiver object @return the deserialized Receiver object @throws JSONException Raised if the provided string is not valid JSON.

(String json)

Source from the content-addressed store, hash-verified

46 * @throws JSONException Raised if the provided string is not valid JSON.
47 */
48 public static Receiver fromJson(String json) throws JSONException {
49 try {
50 return Utils.serializer.fromJson(json, Receiver.class);
51 } catch (IllegalStateException e) {
52 throw new JSONException("Unable to parse serialized receiver: " + e.getMessage());
53 }
54 }
55}

Callers 8

testReceiversMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
ClientClass · 0.80
createMethod · 0.80
checkErrorMethod · 0.80
BatchResponseMethod · 0.80

Calls 1

getMessageMethod · 0.45

Tested by 1

testReceiversMethod · 0.76