toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of InputImage.

Implementation

Map<String, dynamic> toJson() => {
      'bytes': bytes,
      'type': type.name,
      'path': filePath,
      'metadata': inputImageData == null ? 'none' : inputImageData!.toJson()
    };