2023-06-01 12:32:51 +02:00
|
|
|
//
|
|
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
|
|
//
|
|
|
|
// @dart=2.12
|
|
|
|
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
|
|
|
|
part of openapi.api;
|
|
|
|
|
|
|
|
class SystemConfigJobDto {
|
|
|
|
/// Returns a new [SystemConfigJobDto] instance.
|
|
|
|
SystemConfigJobDto({
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.backgroundTask,
|
2023-09-20 13:16:33 +02:00
|
|
|
required this.library_,
|
2023-06-01 12:32:51 +02:00
|
|
|
required this.metadataExtraction,
|
2023-09-25 17:07:21 +02:00
|
|
|
required this.migration,
|
2023-06-01 12:32:51 +02:00
|
|
|
required this.objectTagging,
|
|
|
|
required this.recognizeFaces,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.search,
|
2023-06-01 12:32:51 +02:00
|
|
|
required this.sidecar,
|
2023-12-16 18:50:46 +02:00
|
|
|
required this.smartSearch,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.storageTemplateMigration,
|
|
|
|
required this.thumbnailGeneration,
|
|
|
|
required this.videoConversion,
|
2023-06-01 12:32:51 +02:00
|
|
|
});
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto backgroundTask;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-09-20 13:16:33 +02:00
|
|
|
JobSettingsDto library_;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto metadataExtraction;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-09-25 17:07:21 +02:00
|
|
|
JobSettingsDto migration;
|
|
|
|
|
2023-06-01 12:32:51 +02:00
|
|
|
JobSettingsDto objectTagging;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto recognizeFaces;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto search;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto sidecar;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-12-16 18:50:46 +02:00
|
|
|
JobSettingsDto smartSearch;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto storageTemplateMigration;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto thumbnailGeneration;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
JobSettingsDto videoConversion;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
|
2023-08-06 22:55:14 +02:00
|
|
|
other.backgroundTask == backgroundTask &&
|
2023-09-20 13:16:33 +02:00
|
|
|
other.library_ == library_ &&
|
2023-08-06 22:55:14 +02:00
|
|
|
other.metadataExtraction == metadataExtraction &&
|
2023-09-25 17:07:21 +02:00
|
|
|
other.migration == migration &&
|
2023-08-06 22:55:14 +02:00
|
|
|
other.objectTagging == objectTagging &&
|
|
|
|
other.recognizeFaces == recognizeFaces &&
|
|
|
|
other.search == search &&
|
|
|
|
other.sidecar == sidecar &&
|
2023-12-16 18:50:46 +02:00
|
|
|
other.smartSearch == smartSearch &&
|
2023-08-06 22:55:14 +02:00
|
|
|
other.storageTemplateMigration == storageTemplateMigration &&
|
|
|
|
other.thumbnailGeneration == thumbnailGeneration &&
|
|
|
|
other.videoConversion == videoConversion;
|
2023-06-01 12:32:51 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode =>
|
|
|
|
// ignore: unnecessary_parenthesis
|
2023-08-01 18:49:18 +02:00
|
|
|
(backgroundTask.hashCode) +
|
2023-09-20 13:16:33 +02:00
|
|
|
(library_.hashCode) +
|
2023-06-01 12:32:51 +02:00
|
|
|
(metadataExtraction.hashCode) +
|
2023-09-25 17:07:21 +02:00
|
|
|
(migration.hashCode) +
|
2023-06-01 12:32:51 +02:00
|
|
|
(objectTagging.hashCode) +
|
|
|
|
(recognizeFaces.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(search.hashCode) +
|
|
|
|
(sidecar.hashCode) +
|
2023-12-16 18:50:46 +02:00
|
|
|
(smartSearch.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(storageTemplateMigration.hashCode) +
|
|
|
|
(thumbnailGeneration.hashCode) +
|
|
|
|
(videoConversion.hashCode);
|
2023-06-01 12:32:51 +02:00
|
|
|
|
|
|
|
@override
|
2023-12-16 18:50:46 +02:00
|
|
|
String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, objectTagging=$objectTagging, recognizeFaces=$recognizeFaces, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
2023-06-01 12:32:51 +02:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final json = <String, dynamic>{};
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'backgroundTask'] = this.backgroundTask;
|
2023-09-20 13:16:33 +02:00
|
|
|
json[r'library'] = this.library_;
|
2023-06-01 12:32:51 +02:00
|
|
|
json[r'metadataExtraction'] = this.metadataExtraction;
|
2023-09-25 17:07:21 +02:00
|
|
|
json[r'migration'] = this.migration;
|
2023-06-01 12:32:51 +02:00
|
|
|
json[r'objectTagging'] = this.objectTagging;
|
|
|
|
json[r'recognizeFaces'] = this.recognizeFaces;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'search'] = this.search;
|
2023-06-01 12:32:51 +02:00
|
|
|
json[r'sidecar'] = this.sidecar;
|
2023-12-16 18:50:46 +02:00
|
|
|
json[r'smartSearch'] = this.smartSearch;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'storageTemplateMigration'] = this.storageTemplateMigration;
|
|
|
|
json[r'thumbnailGeneration'] = this.thumbnailGeneration;
|
|
|
|
json[r'videoConversion'] = this.videoConversion;
|
2023-06-01 12:32:51 +02:00
|
|
|
return json;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Returns a new [SystemConfigJobDto] instance and imports its values from
|
|
|
|
/// [value] if it's a [Map], null otherwise.
|
|
|
|
// ignore: prefer_constructors_over_static_methods
|
|
|
|
static SystemConfigJobDto? fromJson(dynamic value) {
|
|
|
|
if (value is Map) {
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
|
|
|
return SystemConfigJobDto(
|
2023-08-01 18:49:18 +02:00
|
|
|
backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!,
|
2023-09-20 13:16:33 +02:00
|
|
|
library_: JobSettingsDto.fromJson(json[r'library'])!,
|
2023-06-01 12:32:51 +02:00
|
|
|
metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!,
|
2023-09-25 17:07:21 +02:00
|
|
|
migration: JobSettingsDto.fromJson(json[r'migration'])!,
|
2023-06-01 12:32:51 +02:00
|
|
|
objectTagging: JobSettingsDto.fromJson(json[r'objectTagging'])!,
|
|
|
|
recognizeFaces: JobSettingsDto.fromJson(json[r'recognizeFaces'])!,
|
2023-08-01 18:49:18 +02:00
|
|
|
search: JobSettingsDto.fromJson(json[r'search'])!,
|
2023-06-01 12:32:51 +02:00
|
|
|
sidecar: JobSettingsDto.fromJson(json[r'sidecar'])!,
|
2023-12-16 18:50:46 +02:00
|
|
|
smartSearch: JobSettingsDto.fromJson(json[r'smartSearch'])!,
|
2023-08-01 18:49:18 +02:00
|
|
|
storageTemplateMigration: JobSettingsDto.fromJson(json[r'storageTemplateMigration'])!,
|
|
|
|
thumbnailGeneration: JobSettingsDto.fromJson(json[r'thumbnailGeneration'])!,
|
|
|
|
videoConversion: JobSettingsDto.fromJson(json[r'videoConversion'])!,
|
2023-06-01 12:32:51 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
static List<SystemConfigJobDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
|
|
final result = <SystemConfigJobDto>[];
|
|
|
|
if (json is List && json.isNotEmpty) {
|
|
|
|
for (final row in json) {
|
|
|
|
final value = SystemConfigJobDto.fromJson(row);
|
|
|
|
if (value != null) {
|
|
|
|
result.add(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toList(growable: growable);
|
|
|
|
}
|
|
|
|
|
|
|
|
static Map<String, SystemConfigJobDto> mapFromJson(dynamic json) {
|
|
|
|
final map = <String, SystemConfigJobDto>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
|
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
|
|
for (final entry in json.entries) {
|
|
|
|
final value = SystemConfigJobDto.fromJson(entry.value);
|
|
|
|
if (value != null) {
|
|
|
|
map[entry.key] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
// maps a json object with a list of SystemConfigJobDto-objects as value to a dart map
|
|
|
|
static Map<String, List<SystemConfigJobDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
|
|
final map = <String, List<SystemConfigJobDto>>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
|
|
|
// ignore: parameter_assignments
|
|
|
|
json = json.cast<String, dynamic>();
|
|
|
|
for (final entry in json.entries) {
|
|
|
|
map[entry.key] = SystemConfigJobDto.listFromJson(entry.value, growable: growable,);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
|
|
static const requiredKeys = <String>{
|
2023-08-01 18:49:18 +02:00
|
|
|
'backgroundTask',
|
2023-09-20 13:16:33 +02:00
|
|
|
'library',
|
2023-06-01 12:32:51 +02:00
|
|
|
'metadataExtraction',
|
2023-09-25 17:07:21 +02:00
|
|
|
'migration',
|
2023-06-01 12:32:51 +02:00
|
|
|
'objectTagging',
|
|
|
|
'recognizeFaces',
|
2023-08-01 18:49:18 +02:00
|
|
|
'search',
|
2023-06-01 12:32:51 +02:00
|
|
|
'sidecar',
|
2023-12-16 18:50:46 +02:00
|
|
|
'smartSearch',
|
2023-08-01 18:49:18 +02:00
|
|
|
'storageTemplateMigration',
|
|
|
|
'thumbnailGeneration',
|
|
|
|
'videoConversion',
|
2023-06-01 12:32:51 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|