toJson method
Implementation
Map<String, dynamic> toJson() {
final image = this.image;
final containerHostname = this.containerHostname;
final imageDigest = this.imageDigest;
final modelDataUrl = this.modelDataUrl;
final productId = this.productId;
return {
'Image': image,
if (containerHostname != null) 'ContainerHostname': containerHostname,
if (imageDigest != null) 'ImageDigest': imageDigest,
if (modelDataUrl != null) 'ModelDataUrl': modelDataUrl,
if (productId != null) 'ProductId': productId,
};
}