ScreenshotOptions.fromJson constructor

ScreenshotOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ScreenshotOptions.fromJson(Map<String, dynamic> json) {
  return ScreenshotOptions(
    optimizeForSpeed: json['optimizeForSpeed'],
    type: json['type'],
    quality: json['quality'],
    fromSurface: json['fromSurface'],
    fullPage: json['fullPage'],
    omitBackground: json['omitBackground'],
    path: json['path'],
    clip: json['clip'] != null ? ScreenshotClip.fromJson(json['clip']) : null,
    encoding: json['encoding'],
    captureBeyondViewport: json['captureBeyondViewport'],
  );
}