ImageSource

data class ImageSource(var type: ImageSourceType, var filePath: String?) : Parcelable

Description of source from which the ImageRef was created.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(type: ImageSourceType, filePath: String?)

Properties

Link copied to clipboard

File from which the ImageRef was created. Non-null only if the image ref was created from file.

Link copied to clipboard

Source type from which the ImageRef was created.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject