org.starhope.appius.util
Interface CastsToJSON

All Known Subinterfaces:
AdditionalPaymentRecord
All Known Implementing Classes:
AvatarDecoration, Coord3D

public interface CastsToJSON

This interface is implemented by objects which can be cast to/from JSON

Author:
brpocock

Method Summary
 void set(org.json.JSONObject o)
          This method will attempt to set the data contents of this object to the values derived from the JSON object being passed-in.
 org.json.JSONObject toJSON()
          This returns a copy of the object's data cast into a JSON form.
 

Method Detail

toJSON

org.json.JSONObject toJSON()
This returns a copy of the object's data cast into a JSON form.

Returns:
The string representing this object in JSON format

set

void set(org.json.JSONObject o)
This method will attempt to set the data contents of this object to the values derived from the JSON object being passed-in. All exceptions are ignored, but any errors in the JSON data could cause the command to fail, completely or partially.

Parameters:
o - The JSON object containing a the new data for this object.