// // 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; /// Le fond d'un lieu. Un seul type, deux porteurs : une `Configuration` le porte /// pour le fond d'une visite, l'`ApplicationInstance` VR pour le fond du menu. /// /// ⚠️ Le repli n'est pas decoratif : trois canaux sur quatre ne rendent pas un /// panorama. Sans `fallbackResourceId`, activer un fond immersif noircirait /// l'ecran partout ailleurs que dans le casque. class ImmersiveBackgroundDTO { ImmersiveBackgroundDTO({ this.resourceId, this.kind, this.fallbackResourceId, this.resourceUrl, this.fallbackUrl, }); String? resourceId; ImmersiveBackgroundKind? kind; String? fallbackResourceId; /// URL de la ressource, posee par le serveur a la lecture. String? resourceUrl; String? fallbackUrl; @override bool operator ==(Object other) => identical(this, other) || other is ImmersiveBackgroundDTO && other.resourceId == resourceId && other.kind == kind && other.fallbackResourceId == fallbackResourceId; @override int get hashCode => (resourceId == null ? 0 : resourceId!.hashCode) + (kind == null ? 0 : kind!.hashCode) + (fallbackResourceId == null ? 0 : fallbackResourceId!.hashCode); @override String toString() => 'ImmersiveBackgroundDTO[resourceId=$resourceId, kind=$kind, fallbackResourceId=$fallbackResourceId]'; Map toJson() { final json = {}; if (this.resourceId != null) { json[r'resourceId'] = this.resourceId; } else { json[r'resourceId'] = null; } if (this.kind != null) { json[r'kind'] = this.kind; } else { json[r'kind'] = null; } if (this.fallbackResourceId != null) { json[r'fallbackResourceId'] = this.fallbackResourceId; } else { json[r'fallbackResourceId'] = null; } if (this.resourceUrl != null) { json[r'resourceUrl'] = this.resourceUrl; } else { json[r'resourceUrl'] = null; } if (this.fallbackUrl != null) { json[r'fallbackUrl'] = this.fallbackUrl; } else { json[r'fallbackUrl'] = null; } return json; } static ImmersiveBackgroundDTO? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); return ImmersiveBackgroundDTO( resourceId: mapValueOfType(json, r'resourceId'), kind: ImmersiveBackgroundKind.fromJson(json[r'kind']), fallbackResourceId: mapValueOfType(json, r'fallbackResourceId'), resourceUrl: mapValueOfType(json, r'resourceUrl'), fallbackUrl: mapValueOfType(json, r'fallbackUrl'), ); } 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 = ImmersiveBackgroundDTO.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(); for (final entry in json.entries) { final value = ImmersiveBackgroundDTO.fromJson(entry.value); if (value != null) { map[entry.key] = value; } } } return map; } static const requiredKeys = {}; }