public class ServiceCodec extends AbstractBaseEntityCodec<Service>
Service
.Constructor and Description |
---|
ServiceCodec() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildFields(Service service,
com.google.gson.JsonObject jsonObj,
com.google.gson.JsonSerializationContext context)
Add child specific fields to the json object.
|
protected BaseEntity.Builder<Service> |
getBuilder(com.google.gson.JsonObject jsonObj,
com.google.gson.JsonDeserializationContext context)
Get a builder initialized with child specific fields.
|
deserialize, serialize
protected void addChildFields(Service service, com.google.gson.JsonObject jsonObj, com.google.gson.JsonSerializationContext context)
AbstractBaseEntityCodec
addChildFields
in class AbstractBaseEntityCodec<Service>
service
- entity being serializedjsonObj
- object that should be populated with child specific fieldscontext
- context for serializationprotected BaseEntity.Builder<Service> getBuilder(com.google.gson.JsonObject jsonObj, com.google.gson.JsonDeserializationContext context)
AbstractBaseEntityCodec
getBuilder
in class AbstractBaseEntityCodec<Service>
jsonObj
- object that is being deserializedcontext
- context for deserializationCopyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.