public interface PassJsonAdapter
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toJson(PassEntity modelObject,
boolean includeContext)
Pass in a PASS model object e.g.
|
<T extends PassEntity> |
toModel(byte[] jsonData,
Class<T> valueType)
Pass in the JSON data as a byte array and the model class to match it to e.g.
|
<T extends PassEntity> |
toModel(InputStream jsonData,
Class<T> valueType)
Pass in the json data as an InputStream and the model class to match it to e.g.
|
byte[] toJson(PassEntity modelObject, boolean includeContext)
modelObject - The PASS entity.includeContext - true if the JSON-LD context should be included in the JSON<T extends PassEntity> T toModel(byte[] jsonData, Class<T> valueType)
T - The PASS entity typejsonData - Serialized JSON.valueType - PASS entity class.<T extends PassEntity> T toModel(InputStream jsonData, Class<T> valueType)
T - The PASS entity typejsonData - Serialized JSON.valueType - PASS class.Copyright © 2019. All rights reserved.