2022-11-15 06:39:32 +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;
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
class SystemConfigDto {
|
|
|
|
/// Returns a new [SystemConfigDto] instance.
|
|
|
|
SystemConfigDto({
|
|
|
|
required this.ffmpeg,
|
2023-08-01 18:49:18 +02:00
|
|
|
required this.job,
|
2023-10-31 22:19:12 +02:00
|
|
|
required this.library_,
|
2023-12-14 18:55:40 +02:00
|
|
|
required this.logging,
|
2023-08-25 06:15:03 +02:00
|
|
|
required this.machineLearning,
|
2023-09-09 04:51:46 +02:00
|
|
|
required this.map,
|
2023-10-24 17:05:42 +02:00
|
|
|
required this.newVersionCheck,
|
2022-12-09 22:51:42 +02:00
|
|
|
required this.oauth,
|
2023-01-09 23:32:58 +02:00
|
|
|
required this.passwordLogin,
|
2023-09-26 09:03:57 +02:00
|
|
|
required this.reverseGeocoding,
|
2024-01-04 04:54:48 +02:00
|
|
|
required this.server,
|
2022-12-16 22:26:12 +02:00
|
|
|
required this.storageTemplate,
|
2023-10-23 20:38:41 +02:00
|
|
|
required this.theme,
|
2023-08-08 16:39:51 +02:00
|
|
|
required this.thumbnail,
|
2023-10-06 09:01:14 +02:00
|
|
|
required this.trash,
|
2024-03-06 07:45:40 +02:00
|
|
|
required this.user,
|
2022-11-15 06:39:32 +02:00
|
|
|
});
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
SystemConfigFFmpegDto ffmpeg;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
SystemConfigJobDto job;
|
|
|
|
|
2023-10-31 22:19:12 +02:00
|
|
|
SystemConfigLibraryDto library_;
|
|
|
|
|
2023-12-14 18:55:40 +02:00
|
|
|
SystemConfigLoggingDto logging;
|
|
|
|
|
2023-08-25 06:15:03 +02:00
|
|
|
SystemConfigMachineLearningDto machineLearning;
|
|
|
|
|
2023-09-09 04:51:46 +02:00
|
|
|
SystemConfigMapDto map;
|
|
|
|
|
2023-10-24 17:05:42 +02:00
|
|
|
SystemConfigNewVersionCheckDto newVersionCheck;
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
SystemConfigOAuthDto oauth;
|
2022-11-15 06:39:32 +02:00
|
|
|
|
2023-01-09 23:32:58 +02:00
|
|
|
SystemConfigPasswordLoginDto passwordLogin;
|
|
|
|
|
2023-09-26 09:03:57 +02:00
|
|
|
SystemConfigReverseGeocodingDto reverseGeocoding;
|
|
|
|
|
2024-01-04 04:54:48 +02:00
|
|
|
SystemConfigServerDto server;
|
|
|
|
|
2022-12-16 22:26:12 +02:00
|
|
|
SystemConfigStorageTemplateDto storageTemplate;
|
|
|
|
|
2023-10-23 20:38:41 +02:00
|
|
|
SystemConfigThemeDto theme;
|
|
|
|
|
2023-08-08 16:39:51 +02:00
|
|
|
SystemConfigThumbnailDto thumbnail;
|
|
|
|
|
2023-10-06 09:01:14 +02:00
|
|
|
SystemConfigTrashDto trash;
|
|
|
|
|
2024-03-06 07:45:40 +02:00
|
|
|
SystemConfigUserDto user;
|
|
|
|
|
2022-11-15 06:39:32 +02:00
|
|
|
@override
|
2022-12-09 22:51:42 +02:00
|
|
|
bool operator ==(Object other) => identical(this, other) || other is SystemConfigDto &&
|
2024-01-26 18:40:28 +02:00
|
|
|
other.ffmpeg == ffmpeg &&
|
|
|
|
other.job == job &&
|
|
|
|
other.library_ == library_ &&
|
|
|
|
other.logging == logging &&
|
|
|
|
other.machineLearning == machineLearning &&
|
|
|
|
other.map == map &&
|
|
|
|
other.newVersionCheck == newVersionCheck &&
|
|
|
|
other.oauth == oauth &&
|
|
|
|
other.passwordLogin == passwordLogin &&
|
|
|
|
other.reverseGeocoding == reverseGeocoding &&
|
|
|
|
other.server == server &&
|
|
|
|
other.storageTemplate == storageTemplate &&
|
|
|
|
other.theme == theme &&
|
|
|
|
other.thumbnail == thumbnail &&
|
2024-03-06 07:45:40 +02:00
|
|
|
other.trash == trash &&
|
|
|
|
other.user == user;
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode =>
|
|
|
|
// ignore: unnecessary_parenthesis
|
2022-12-09 22:51:42 +02:00
|
|
|
(ffmpeg.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(job.hashCode) +
|
2023-10-31 22:19:12 +02:00
|
|
|
(library_.hashCode) +
|
2023-12-14 18:55:40 +02:00
|
|
|
(logging.hashCode) +
|
2023-08-25 06:15:03 +02:00
|
|
|
(machineLearning.hashCode) +
|
2023-09-09 04:51:46 +02:00
|
|
|
(map.hashCode) +
|
2023-10-24 17:05:42 +02:00
|
|
|
(newVersionCheck.hashCode) +
|
2022-12-16 22:26:12 +02:00
|
|
|
(oauth.hashCode) +
|
2023-01-09 23:32:58 +02:00
|
|
|
(passwordLogin.hashCode) +
|
2023-09-26 09:03:57 +02:00
|
|
|
(reverseGeocoding.hashCode) +
|
2024-01-04 04:54:48 +02:00
|
|
|
(server.hashCode) +
|
2023-08-08 16:39:51 +02:00
|
|
|
(storageTemplate.hashCode) +
|
2023-10-23 20:38:41 +02:00
|
|
|
(theme.hashCode) +
|
2023-10-06 09:01:14 +02:00
|
|
|
(thumbnail.hashCode) +
|
2024-03-06 07:45:40 +02:00
|
|
|
(trash.hashCode) +
|
|
|
|
(user.hashCode);
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
@override
|
2024-03-06 07:45:40 +02:00
|
|
|
String toString() => 'SystemConfigDto[ffmpeg=$ffmpeg, job=$job, library_=$library_, logging=$logging, machineLearning=$machineLearning, map=$map, newVersionCheck=$newVersionCheck, oauth=$oauth, passwordLogin=$passwordLogin, reverseGeocoding=$reverseGeocoding, server=$server, storageTemplate=$storageTemplate, theme=$theme, thumbnail=$thumbnail, trash=$trash, user=$user]';
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
2023-01-10 06:08:45 +02:00
|
|
|
final json = <String, dynamic>{};
|
|
|
|
json[r'ffmpeg'] = this.ffmpeg;
|
2023-08-01 18:49:18 +02:00
|
|
|
json[r'job'] = this.job;
|
2023-10-31 22:19:12 +02:00
|
|
|
json[r'library'] = this.library_;
|
2023-12-14 18:55:40 +02:00
|
|
|
json[r'logging'] = this.logging;
|
2023-08-25 06:15:03 +02:00
|
|
|
json[r'machineLearning'] = this.machineLearning;
|
2023-09-09 04:51:46 +02:00
|
|
|
json[r'map'] = this.map;
|
2023-10-24 17:05:42 +02:00
|
|
|
json[r'newVersionCheck'] = this.newVersionCheck;
|
2023-01-10 06:08:45 +02:00
|
|
|
json[r'oauth'] = this.oauth;
|
|
|
|
json[r'passwordLogin'] = this.passwordLogin;
|
2023-09-26 09:03:57 +02:00
|
|
|
json[r'reverseGeocoding'] = this.reverseGeocoding;
|
2024-01-04 04:54:48 +02:00
|
|
|
json[r'server'] = this.server;
|
2023-01-10 06:08:45 +02:00
|
|
|
json[r'storageTemplate'] = this.storageTemplate;
|
2023-10-23 20:38:41 +02:00
|
|
|
json[r'theme'] = this.theme;
|
2023-08-08 16:39:51 +02:00
|
|
|
json[r'thumbnail'] = this.thumbnail;
|
2023-10-06 09:01:14 +02:00
|
|
|
json[r'trash'] = this.trash;
|
2024-03-06 07:45:40 +02:00
|
|
|
json[r'user'] = this.user;
|
2023-01-10 06:08:45 +02:00
|
|
|
return json;
|
2022-11-15 06:39:32 +02:00
|
|
|
}
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
/// Returns a new [SystemConfigDto] instance and imports its values from
|
2022-11-15 06:39:32 +02:00
|
|
|
/// [value] if it's a [Map], null otherwise.
|
|
|
|
// ignore: prefer_constructors_over_static_methods
|
2022-12-09 22:51:42 +02:00
|
|
|
static SystemConfigDto? fromJson(dynamic value) {
|
2022-11-15 06:39:32 +02:00
|
|
|
if (value is Map) {
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
return SystemConfigDto(
|
|
|
|
ffmpeg: SystemConfigFFmpegDto.fromJson(json[r'ffmpeg'])!,
|
2023-08-01 18:49:18 +02:00
|
|
|
job: SystemConfigJobDto.fromJson(json[r'job'])!,
|
2023-10-31 22:19:12 +02:00
|
|
|
library_: SystemConfigLibraryDto.fromJson(json[r'library'])!,
|
2023-12-14 18:55:40 +02:00
|
|
|
logging: SystemConfigLoggingDto.fromJson(json[r'logging'])!,
|
2023-08-25 06:15:03 +02:00
|
|
|
machineLearning: SystemConfigMachineLearningDto.fromJson(json[r'machineLearning'])!,
|
2023-09-09 04:51:46 +02:00
|
|
|
map: SystemConfigMapDto.fromJson(json[r'map'])!,
|
2023-10-24 17:05:42 +02:00
|
|
|
newVersionCheck: SystemConfigNewVersionCheckDto.fromJson(json[r'newVersionCheck'])!,
|
2022-12-09 22:51:42 +02:00
|
|
|
oauth: SystemConfigOAuthDto.fromJson(json[r'oauth'])!,
|
2023-01-09 23:32:58 +02:00
|
|
|
passwordLogin: SystemConfigPasswordLoginDto.fromJson(json[r'passwordLogin'])!,
|
2023-09-26 09:03:57 +02:00
|
|
|
reverseGeocoding: SystemConfigReverseGeocodingDto.fromJson(json[r'reverseGeocoding'])!,
|
2024-01-04 04:54:48 +02:00
|
|
|
server: SystemConfigServerDto.fromJson(json[r'server'])!,
|
2022-12-16 22:26:12 +02:00
|
|
|
storageTemplate: SystemConfigStorageTemplateDto.fromJson(json[r'storageTemplate'])!,
|
2023-10-23 20:38:41 +02:00
|
|
|
theme: SystemConfigThemeDto.fromJson(json[r'theme'])!,
|
2023-08-08 16:39:51 +02:00
|
|
|
thumbnail: SystemConfigThumbnailDto.fromJson(json[r'thumbnail'])!,
|
2023-10-06 09:01:14 +02:00
|
|
|
trash: SystemConfigTrashDto.fromJson(json[r'trash'])!,
|
2024-03-06 07:45:40 +02:00
|
|
|
user: SystemConfigUserDto.fromJson(json[r'user'])!,
|
2022-11-15 06:39:32 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-05-03 21:27:57 +02:00
|
|
|
static List<SystemConfigDto> listFromJson(dynamic json, {bool growable = false,}) {
|
2022-12-09 22:51:42 +02:00
|
|
|
final result = <SystemConfigDto>[];
|
2022-11-15 06:39:32 +02:00
|
|
|
if (json is List && json.isNotEmpty) {
|
|
|
|
for (final row in json) {
|
2022-12-09 22:51:42 +02:00
|
|
|
final value = SystemConfigDto.fromJson(row);
|
2022-11-15 06:39:32 +02:00
|
|
|
if (value != null) {
|
|
|
|
result.add(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toList(growable: growable);
|
|
|
|
}
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
static Map<String, SystemConfigDto> mapFromJson(dynamic json) {
|
|
|
|
final map = <String, SystemConfigDto>{};
|
2022-11-15 06:39:32 +02:00
|
|
|
if (json is Map && json.isNotEmpty) {
|
|
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
|
|
for (final entry in json.entries) {
|
2022-12-09 22:51:42 +02:00
|
|
|
final value = SystemConfigDto.fromJson(entry.value);
|
2022-11-15 06:39:32 +02:00
|
|
|
if (value != null) {
|
|
|
|
map[entry.key] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
// maps a json object with a list of SystemConfigDto-objects as value to a dart map
|
|
|
|
static Map<String, List<SystemConfigDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
|
|
final map = <String, List<SystemConfigDto>>{};
|
2022-11-15 06:39:32 +02:00
|
|
|
if (json is Map && json.isNotEmpty) {
|
2023-05-03 21:27:57 +02:00
|
|
|
// ignore: parameter_assignments
|
|
|
|
json = json.cast<String, dynamic>();
|
2022-11-15 06:39:32 +02:00
|
|
|
for (final entry in json.entries) {
|
2023-05-03 21:27:57 +02:00
|
|
|
map[entry.key] = SystemConfigDto.listFromJson(entry.value, growable: growable,);
|
2022-11-15 06:39:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
|
|
static const requiredKeys = <String>{
|
2022-12-09 22:51:42 +02:00
|
|
|
'ffmpeg',
|
2023-08-01 18:49:18 +02:00
|
|
|
'job',
|
2023-10-31 22:19:12 +02:00
|
|
|
'library',
|
2023-12-14 18:55:40 +02:00
|
|
|
'logging',
|
2023-08-25 06:15:03 +02:00
|
|
|
'machineLearning',
|
2023-09-09 04:51:46 +02:00
|
|
|
'map',
|
2023-10-24 17:05:42 +02:00
|
|
|
'newVersionCheck',
|
2022-12-09 22:51:42 +02:00
|
|
|
'oauth',
|
2023-01-09 23:32:58 +02:00
|
|
|
'passwordLogin',
|
2023-09-26 09:03:57 +02:00
|
|
|
'reverseGeocoding',
|
2024-01-04 04:54:48 +02:00
|
|
|
'server',
|
2022-12-16 22:26:12 +02:00
|
|
|
'storageTemplate',
|
2023-10-23 20:38:41 +02:00
|
|
|
'theme',
|
2023-08-08 16:39:51 +02:00
|
|
|
'thumbnail',
|
2023-10-06 09:01:14 +02:00
|
|
|
'trash',
|
2024-03-06 07:45:40 +02:00
|
|
|
'user',
|
2022-11-15 06:39:32 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|