toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of InputImageData.

Implementation

Map<String, dynamic> toJson() => {
      'width': size.width,
      'height': size.height,
      'rotation': imageRotation.rawValue,
      'imageFormat': inputImageFormat.rawValue,
      'planeData': planeData
          ?.map((InputImagePlaneMetadata plane) => plane.toJson())
          .toList(),
    };