// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.18 // 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 ServerFeaturesDto { /// Returns a new [ServerFeaturesDto] instance. ServerFeaturesDto({ required this.configFile, required this.duplicateDetection, required this.email, required this.facialRecognition, required this.importFaces, required this.map, required this.oauth, required this.oauthAutoLaunch, required this.ocr, required this.passwordLogin, required this.realtimeTranscoding, required this.reverseGeocoding, required this.search, required this.sidecar, required this.smartSearch, required this.trash, }); /// Whether config file is available bool configFile; /// Whether duplicate detection is enabled bool duplicateDetection; /// Whether email notifications are enabled bool email; /// Whether facial recognition is enabled bool facialRecognition; /// Whether face import is enabled bool importFaces; /// Whether map feature is enabled bool map; /// Whether OAuth is enabled bool oauth; /// Whether OAuth auto-launch is enabled bool oauthAutoLaunch; /// Whether OCR is enabled bool ocr; /// Whether password login is enabled bool passwordLogin; /// Whether real-time transcoding is enabled bool realtimeTranscoding; /// Whether reverse geocoding is enabled bool reverseGeocoding; /// Whether search is enabled bool search; /// Whether sidecar files are supported bool sidecar; /// Whether smart search is enabled bool smartSearch; /// Whether trash feature is enabled bool trash; @override bool operator ==(Object other) => identical(this, other) || other is ServerFeaturesDto && other.configFile == configFile && other.duplicateDetection == duplicateDetection && other.email == email && other.facialRecognition == facialRecognition && other.importFaces == importFaces && other.map == map && other.oauth == oauth && other.oauthAutoLaunch == oauthAutoLaunch && other.ocr == ocr && other.passwordLogin == passwordLogin && other.realtimeTranscoding == realtimeTranscoding && other.reverseGeocoding == reverseGeocoding && other.search == search && other.sidecar == sidecar && other.smartSearch == smartSearch && other.trash == trash; @override int get hashCode => // ignore: unnecessary_parenthesis (configFile.hashCode) + (duplicateDetection.hashCode) + (email.hashCode) + (facialRecognition.hashCode) + (importFaces.hashCode) + (map.hashCode) + (oauth.hashCode) + (oauthAutoLaunch.hashCode) + (ocr.hashCode) + (passwordLogin.hashCode) + (realtimeTranscoding.hashCode) + (reverseGeocoding.hashCode) + (search.hashCode) + (sidecar.hashCode) + (smartSearch.hashCode) + (trash.hashCode); @override String toString() => 'ServerFeaturesDto[configFile=$configFile, duplicateDetection=$duplicateDetection, email=$email, facialRecognition=$facialRecognition, importFaces=$importFaces, map=$map, oauth=$oauth, oauthAutoLaunch=$oauthAutoLaunch, ocr=$ocr, passwordLogin=$passwordLogin, realtimeTranscoding=$realtimeTranscoding, reverseGeocoding=$reverseGeocoding, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, trash=$trash]'; Map toJson() { final json = {}; json[r'configFile'] = this.configFile; json[r'duplicateDetection'] = this.duplicateDetection; json[r'email'] = this.email; json[r'facialRecognition'] = this.facialRecognition; json[r'importFaces'] = this.importFaces; json[r'map'] = this.map; json[r'oauth'] = this.oauth; json[r'oauthAutoLaunch'] = this.oauthAutoLaunch; json[r'ocr'] = this.ocr; json[r'passwordLogin'] = this.passwordLogin; json[r'realtimeTranscoding'] = this.realtimeTranscoding; json[r'reverseGeocoding'] = this.reverseGeocoding; json[r'search'] = this.search; json[r'sidecar'] = this.sidecar; json[r'smartSearch'] = this.smartSearch; json[r'trash'] = this.trash; return json; } /// Returns a new [ServerFeaturesDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods static ServerFeaturesDto? fromJson(dynamic value) { upgradeDto(value, "ServerFeaturesDto"); if (value is Map) { final json = value.cast(); return ServerFeaturesDto( configFile: mapValueOfType(json, r'configFile')!, duplicateDetection: mapValueOfType(json, r'duplicateDetection')!, email: mapValueOfType(json, r'email')!, facialRecognition: mapValueOfType(json, r'facialRecognition')!, importFaces: mapValueOfType(json, r'importFaces')!, map: mapValueOfType(json, r'map')!, oauth: mapValueOfType(json, r'oauth')!, oauthAutoLaunch: mapValueOfType(json, r'oauthAutoLaunch')!, ocr: mapValueOfType(json, r'ocr')!, passwordLogin: mapValueOfType(json, r'passwordLogin')!, realtimeTranscoding: mapValueOfType(json, r'realtimeTranscoding')!, reverseGeocoding: mapValueOfType(json, r'reverseGeocoding')!, search: mapValueOfType(json, r'search')!, sidecar: mapValueOfType(json, r'sidecar')!, smartSearch: mapValueOfType(json, r'smartSearch')!, trash: mapValueOfType(json, r'trash')!, ); } return null; } static List listFromJson(dynamic json, {bool growable = false,}) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { final value = ServerFeaturesDto.fromJson(row); if (value != null) { result.add(value); } } } return result.toList(growable: growable); } static Map mapFromJson(dynamic json) { final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { final value = ServerFeaturesDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } } } return map; } // maps a json object with a list of ServerFeaturesDto-objects as value to a dart map static Map> mapListFromJson(dynamic json, {bool growable = false,}) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { map[entry.key] = ServerFeaturesDto.listFromJson(entry.value, growable: growable,); } } return map; } /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'configFile', 'duplicateDetection', 'email', 'facialRecognition', 'importFaces', 'map', 'oauth', 'oauthAutoLaunch', 'ocr', 'passwordLogin', 'realtimeTranscoding', 'reverseGeocoding', 'search', 'sidecar', 'smartSearch', 'trash', }; }