mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
23 lines
702 B
Dart
23 lines
702 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:openapi/api.dart';
|
|
|
|
part 'server_config.model.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class ServerConfig with _$ServerConfig {
|
|
const factory ServerConfig({
|
|
required int trashDays,
|
|
required String oauthButtonText,
|
|
required String externalDomain,
|
|
required String mapDarkStyleUrl,
|
|
required String mapLightStyleUrl,
|
|
}) = _ServerConfig;
|
|
|
|
factory ServerConfig.fromDto(ServerConfigDto dto) => ServerConfig(
|
|
trashDays: dto.trashDays,
|
|
oauthButtonText: dto.oauthButtonText,
|
|
externalDomain: dto.externalDomain,
|
|
mapDarkStyleUrl: dto.mapDarkStyleUrl,
|
|
mapLightStyleUrl: dto.mapLightStyleUrl,
|
|
);
|
|
}
|