Asset Class
Represents an asset to be used with an Image class.
This class is DEPRECATED.
Assets are specified during configuration of an image. For an example, see the image_configuration method
of the ContainerImage class.
Initialize the Asset object for images.
Constructor
Asset(id, mime_type, unpack, url)Parameters
| Name | Description | 
|---|---|
| id 
				Required
			 | The ID corresponding to the image asset. | 
| mime_type 
				Required
			 | The MIME type of the asset. | 
| unpack 
				Required
			 | Whether the asset needs to be unpacked as a part of image setup. | 
| url 
				Required
			 | A URL pointer to where the asset is stored. | 
| id 
				Required
			 | The ID corresponding to the image asset. | 
| mime_type 
				Required
			 | The MIME type of the asset. | 
| unpack 
				Required
			 | Whether the asset needs to be unpacked as a part of image setup. | 
| url 
				Required
			 | A URL pointer to where the asset is stored. | 
Methods
| deserialize | Convert a JSON object into an Asset object. | 
| serialize | Convert this Asset into a JSON serialized dictionary. | 
deserialize
Convert a JSON object into an Asset object.
static deserialize(payload_obj)Parameters
| Name | Description | 
|---|---|
| payload_obj 
				Required
			 | A JSON object to convert to an Asset object. | 
Returns
| Type | Description | 
|---|---|
| The Asset representation of the provided JSON object. | 
Exceptions
| Type | Description | 
|---|---|
serialize
Convert this Asset into a JSON serialized dictionary.
serialize()Returns
| Type | Description | 
|---|---|
| The JSON representation of this Asset object. |