fromMap static method
Gets a possible ScreenshotConfiguration instance from a Map value.
Implementation
static ScreenshotConfiguration? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = ScreenshotConfiguration(
iosAfterScreenUpdates: map['afterScreenUpdates'],
rect: InAppWebViewRect.fromMap(map['rect']?.cast<String, dynamic>()),
snapshotWidth: map['snapshotWidth'],
);
instance.afterScreenUpdates = map['afterScreenUpdates'];
instance.compressFormat =
CompressFormat.fromNativeValue(map['compressFormat'])!;
instance.quality = map['quality'];
return instance;
}