Class Json
java.lang.Object
com.sportradar.mbs.sdk.internal.utils.Json
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthResponse
static Request
deserializeRequest
(String json) static Response
deserializeResponse
(String json) static String
serializeRequest
(Request request) static String
serializeResponse
(Response response)
-
Constructor Details
-
Json
public Json()
-
-
Method Details
-
serializeRequest
public static String serializeRequest(Request request) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
serializeResponse
public static String serializeResponse(Response response) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserializeRequest
public static Request deserializeRequest(String json) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserializeResponse
public static Response deserializeResponse(String json) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserializeAuthResponse
public static AuthResponse deserializeAuthResponse(String json) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-