mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
19 lines
470 B
Dart
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,
|
|
);
|
|
}
|
|
}
|