mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
* chore(mobile): example freezed implementation on some models * Don't commit Freezed generated code * Freezed easy pass * Formatting fix * Generate Flutter debugging info
16 lines
496 B
Dart
16 lines
496 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'backup_config.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class BackupConfig with _$BackupConfig {
|
|
const factory BackupConfig({
|
|
@Default(false) bool enabled,
|
|
@Default(false) bool useCellularForVideos,
|
|
@Default(false) bool useCellularForPhotos,
|
|
@Default(false) bool requireCharging,
|
|
@Default(30) int triggerDelay,
|
|
@Default(false) bool syncAlbums,
|
|
}) = _BackupConfig;
|
|
}
|