// // 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 ServerAboutResponseDto { /// Returns a new [ServerAboutResponseDto] instance. ServerAboutResponseDto({ this.build, this.buildImage, this.buildImageUrl, this.buildUrl, this.exiftool, this.ffmpeg, this.imagemagick, this.libvips, required this.licensed, this.nodejs, this.repository, this.repositoryUrl, this.sourceCommit, this.sourceRef, this.sourceUrl, this.thirdPartyBugFeatureUrl, this.thirdPartyDocumentationUrl, this.thirdPartySourceUrl, this.thirdPartySupportUrl, required this.version, required this.versionUrl, }); /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? build; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? buildImage; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? buildImageUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? buildUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? exiftool; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? ffmpeg; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? imagemagick; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? libvips; bool licensed; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? nodejs; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? repository; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? repositoryUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? sourceCommit; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? sourceRef; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? sourceUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? thirdPartyBugFeatureUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? thirdPartyDocumentationUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? thirdPartySourceUrl; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? thirdPartySupportUrl; String version; String versionUrl; @override bool operator ==(Object other) => identical(this, other) || other is ServerAboutResponseDto && other.build == build && other.buildImage == buildImage && other.buildImageUrl == buildImageUrl && other.buildUrl == buildUrl && other.exiftool == exiftool && other.ffmpeg == ffmpeg && other.imagemagick == imagemagick && other.libvips == libvips && other.licensed == licensed && other.nodejs == nodejs && other.repository == repository && other.repositoryUrl == repositoryUrl && other.sourceCommit == sourceCommit && other.sourceRef == sourceRef && other.sourceUrl == sourceUrl && other.thirdPartyBugFeatureUrl == thirdPartyBugFeatureUrl && other.thirdPartyDocumentationUrl == thirdPartyDocumentationUrl && other.thirdPartySourceUrl == thirdPartySourceUrl && other.thirdPartySupportUrl == thirdPartySupportUrl && other.version == version && other.versionUrl == versionUrl; @override int get hashCode => // ignore: unnecessary_parenthesis (build == null ? 0 : build!.hashCode) + (buildImage == null ? 0 : buildImage!.hashCode) + (buildImageUrl == null ? 0 : buildImageUrl!.hashCode) + (buildUrl == null ? 0 : buildUrl!.hashCode) + (exiftool == null ? 0 : exiftool!.hashCode) + (ffmpeg == null ? 0 : ffmpeg!.hashCode) + (imagemagick == null ? 0 : imagemagick!.hashCode) + (libvips == null ? 0 : libvips!.hashCode) + (licensed.hashCode) + (nodejs == null ? 0 : nodejs!.hashCode) + (repository == null ? 0 : repository!.hashCode) + (repositoryUrl == null ? 0 : repositoryUrl!.hashCode) + (sourceCommit == null ? 0 : sourceCommit!.hashCode) + (sourceRef == null ? 0 : sourceRef!.hashCode) + (sourceUrl == null ? 0 : sourceUrl!.hashCode) + (thirdPartyBugFeatureUrl == null ? 0 : thirdPartyBugFeatureUrl!.hashCode) + (thirdPartyDocumentationUrl == null ? 0 : thirdPartyDocumentationUrl!.hashCode) + (thirdPartySourceUrl == null ? 0 : thirdPartySourceUrl!.hashCode) + (thirdPartySupportUrl == null ? 0 : thirdPartySupportUrl!.hashCode) + (version.hashCode) + (versionUrl.hashCode); @override String toString() => 'ServerAboutResponseDto[build=$build, buildImage=$buildImage, buildImageUrl=$buildImageUrl, buildUrl=$buildUrl, exiftool=$exiftool, ffmpeg=$ffmpeg, imagemagick=$imagemagick, libvips=$libvips, licensed=$licensed, nodejs=$nodejs, repository=$repository, repositoryUrl=$repositoryUrl, sourceCommit=$sourceCommit, sourceRef=$sourceRef, sourceUrl=$sourceUrl, thirdPartyBugFeatureUrl=$thirdPartyBugFeatureUrl, thirdPartyDocumentationUrl=$thirdPartyDocumentationUrl, thirdPartySourceUrl=$thirdPartySourceUrl, thirdPartySupportUrl=$thirdPartySupportUrl, version=$version, versionUrl=$versionUrl]'; Map toJson() { final json = {}; if (this.build != null) { json[r'build'] = this.build; } else { // json[r'build'] = null; } if (this.buildImage != null) { json[r'buildImage'] = this.buildImage; } else { // json[r'buildImage'] = null; } if (this.buildImageUrl != null) { json[r'buildImageUrl'] = this.buildImageUrl; } else { // json[r'buildImageUrl'] = null; } if (this.buildUrl != null) { json[r'buildUrl'] = this.buildUrl; } else { // json[r'buildUrl'] = null; } if (this.exiftool != null) { json[r'exiftool'] = this.exiftool; } else { // json[r'exiftool'] = null; } if (this.ffmpeg != null) { json[r'ffmpeg'] = this.ffmpeg; } else { // json[r'ffmpeg'] = null; } if (this.imagemagick != null) { json[r'imagemagick'] = this.imagemagick; } else { // json[r'imagemagick'] = null; } if (this.libvips != null) { json[r'libvips'] = this.libvips; } else { // json[r'libvips'] = null; } json[r'licensed'] = this.licensed; if (this.nodejs != null) { json[r'nodejs'] = this.nodejs; } else { // json[r'nodejs'] = null; } if (this.repository != null) { json[r'repository'] = this.repository; } else { // json[r'repository'] = null; } if (this.repositoryUrl != null) { json[r'repositoryUrl'] = this.repositoryUrl; } else { // json[r'repositoryUrl'] = null; } if (this.sourceCommit != null) { json[r'sourceCommit'] = this.sourceCommit; } else { // json[r'sourceCommit'] = null; } if (this.sourceRef != null) { json[r'sourceRef'] = this.sourceRef; } else { // json[r'sourceRef'] = null; } if (this.sourceUrl != null) { json[r'sourceUrl'] = this.sourceUrl; } else { // json[r'sourceUrl'] = null; } if (this.thirdPartyBugFeatureUrl != null) { json[r'thirdPartyBugFeatureUrl'] = this.thirdPartyBugFeatureUrl; } else { // json[r'thirdPartyBugFeatureUrl'] = null; } if (this.thirdPartyDocumentationUrl != null) { json[r'thirdPartyDocumentationUrl'] = this.thirdPartyDocumentationUrl; } else { // json[r'thirdPartyDocumentationUrl'] = null; } if (this.thirdPartySourceUrl != null) { json[r'thirdPartySourceUrl'] = this.thirdPartySourceUrl; } else { // json[r'thirdPartySourceUrl'] = null; } if (this.thirdPartySupportUrl != null) { json[r'thirdPartySupportUrl'] = this.thirdPartySupportUrl; } else { // json[r'thirdPartySupportUrl'] = null; } json[r'version'] = this.version; json[r'versionUrl'] = this.versionUrl; return json; } /// Returns a new [ServerAboutResponseDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods static ServerAboutResponseDto? fromJson(dynamic value) { upgradeDto(value, "ServerAboutResponseDto"); if (value is Map) { final json = value.cast(); return ServerAboutResponseDto( build: mapValueOfType(json, r'build'), buildImage: mapValueOfType(json, r'buildImage'), buildImageUrl: mapValueOfType(json, r'buildImageUrl'), buildUrl: mapValueOfType(json, r'buildUrl'), exiftool: mapValueOfType(json, r'exiftool'), ffmpeg: mapValueOfType(json, r'ffmpeg'), imagemagick: mapValueOfType(json, r'imagemagick'), libvips: mapValueOfType(json, r'libvips'), licensed: mapValueOfType(json, r'licensed')!, nodejs: mapValueOfType(json, r'nodejs'), repository: mapValueOfType(json, r'repository'), repositoryUrl: mapValueOfType(json, r'repositoryUrl'), sourceCommit: mapValueOfType(json, r'sourceCommit'), sourceRef: mapValueOfType(json, r'sourceRef'), sourceUrl: mapValueOfType(json, r'sourceUrl'), thirdPartyBugFeatureUrl: mapValueOfType(json, r'thirdPartyBugFeatureUrl'), thirdPartyDocumentationUrl: mapValueOfType(json, r'thirdPartyDocumentationUrl'), thirdPartySourceUrl: mapValueOfType(json, r'thirdPartySourceUrl'), thirdPartySupportUrl: mapValueOfType(json, r'thirdPartySupportUrl'), version: mapValueOfType(json, r'version')!, versionUrl: mapValueOfType(json, r'versionUrl')!, ); } 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 = ServerAboutResponseDto.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 = ServerAboutResponseDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } } } return map; } // maps a json object with a list of ServerAboutResponseDto-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] = ServerAboutResponseDto.listFromJson(entry.value, growable: growable,); } } return map; } /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'licensed', 'version', 'versionUrl', }; }