toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final containerHostname = this.containerHostname;
  final environment = this.environment;
  final image = this.image;
  final imageConfig = this.imageConfig;
  final mode = this.mode;
  final modelDataUrl = this.modelDataUrl;
  final modelPackageName = this.modelPackageName;
  return {
    if (containerHostname != null) 'ContainerHostname': containerHostname,
    if (environment != null) 'Environment': environment,
    if (image != null) 'Image': image,
    if (imageConfig != null) 'ImageConfig': imageConfig,
    if (mode != null) 'Mode': mode.toValue(),
    if (modelDataUrl != null) 'ModelDataUrl': modelDataUrl,
    if (modelPackageName != null) 'ModelPackageName': modelPackageName,
  };
}