Skip to content

Instantly share code, notes, and snippets.

@apkelly
Created February 1, 2019 01:05
Show Gist options
  • Save apkelly/7444b0997c063dedeeab2244899b9a5d to your computer and use it in GitHub Desktop.
Save apkelly/7444b0997c063dedeeab2244899b9a5d to your computer and use it in GitHub Desktop.
CloudAutoMLModel.kt
// Expected json payload for webservice.
// {
// "payload": {
// "image": {
// "imageBytes": "YOUR_IMAGE_BYTE"
// }
// }
// }
data class CloudAutoMLModel(val payload: Payload)
data class Payload(val image: MlImage)
data class MlImage(val imageBytes: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment