toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of InputImageMetadata.

Implementation

Map<String, dynamic> toJson() => {
  'width': size.width,
  'height': size.height,
  'rotation': rotation.rawValue,
  'image_format': format.rawValue,
  'bytes_per_row': bytesPerRow,
};