ScreenshotSnapshot.fromMap constructor

ScreenshotSnapshot.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ScreenshotSnapshot.fromMap(Map<String, dynamic> map) {
  return ScreenshotSnapshot(
    screenshotPath: map['screenshot_path'] as String? ?? '',
    isScreenshotProtectionOn: map['is_screenshot_on'] as bool? ?? false,
    wasScreenshotTaken: map['was_screenshot_taken'] as bool? ?? false,
  );
}