public final class TrafficStatInfoCodec extends JsonCodec<TrafficStatInfo>
Constructor and Description |
---|
TrafficStatInfoCodec() |
Modifier and Type | Method and Description |
---|---|
TrafficStatInfo |
decode(com.fasterxml.jackson.databind.node.ObjectNode json,
CodecContext context)
Decodes the specified entity from JSON.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(TrafficStatInfo tsi,
CodecContext context)
Encodes the specified entity into JSON.
|
public com.fasterxml.jackson.databind.node.ObjectNode encode(TrafficStatInfo tsi, CodecContext context)
JsonCodec
encode
in class JsonCodec<TrafficStatInfo>
tsi
- entity to encodecontext
- encoding contextpublic TrafficStatInfo decode(com.fasterxml.jackson.databind.node.ObjectNode json, CodecContext context)
JsonCodec
decode
in class JsonCodec<TrafficStatInfo>
json
- JSON to decodecontext
- decoding context