Interface ModelObject.Serializer

  • All Implemented Interfaces:

    
    public interface ModelObject.Serializer<T extends ModelObject>
    
                        

    Interface that must be implemented and provided as a public SERIALIZER field that serializes the to and from a JSONObject.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • deserialize

         abstract T deserialize(JSONObject jsonObject)

        Deserialize a JSONObject to a ModelObject.

        Parameters:
        jsonObject - The base object to deserialize.
        Returns:

        The ModelObject parsed with the contents from the JSONObject.