com.holonplatform.json.gson.internal

## Class GsonPropertyBoxSerializer

- java.lang.Object
- - com.holonplatform.json.gson.internal.GsonPropertyBoxSerializer

- All Implemented Interfaces:
    com.google.gson.JsonSerializer<com.holonplatform.core.property.PropertyBox>

      public class GsonPropertyBoxSerializer
      extends Object
      implements com.google.gson.JsonSerializer<com.holonplatform.core.property.PropertyBox>

  Gson serializer to handle `PropertyBox` serialization.
  Since:
    5.0.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GsonPropertyBoxSerializer(PropertyBoxSerializationMode serializationMode)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gson.JsonElement` | `serialize(com.holonplatform.core.property.PropertyBox propertyBox, Type typeOfSrc, com.google.gson.JsonSerializationContext context)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GsonPropertyBoxSerializer

          public GsonPropertyBoxSerializer(PropertyBoxSerializationMode serializationMode)

      Constructor.
      Parameters:
        `serializationMode` - Serialization mode

  - ### Method Detail

    - #### serialize

          public com.google.gson.JsonElement serialize(com.holonplatform.core.property.PropertyBox propertyBox,
                                                       Type typeOfSrc,
                                                       com.google.gson.JsonSerializationContext context)

      Specified by:
        `serialize` in interface `com.google.gson.JsonSerializer<com.holonplatform.core.property.PropertyBox>`

Copyright © 2019 The Holon Platform. All rights reserved.