m3_lightmeter/screenshots/models/screenshot_config.dart
2024-05-14 13:48:28 +02:00

19 lines
470 B
Dart

class ScreenshotConfig {
final String title;
final String subtitle;
final String screenshotName;
const ScreenshotConfig({
required this.title,
required this.subtitle,
required this.screenshotName,
});
factory ScreenshotConfig.fromJson(Map<String, dynamic> data) {
return ScreenshotConfig(
title: data['title'] as String,
subtitle: data['subtitle'] as String,
screenshotName: data['screenshotName'] as String,
);
}
}