// // 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; /// Position d'un point d'interet sur une maquette 3D, dans le repere du modele. /// /// Convention glTF — Y vers le haut, Z vers l'arriere, main droite — et non celle /// d'Unity. La conversion vit a un seul endroit cote casque : un miroir d'axes est /// invisible sur une maquette symetrique et tres couteux decouvert tard. class Position3D { Position3D({ this.x = 0, this.y = 0, this.z = 0, this.rotationY, }); double x; double y; double z; /// Rotation en degres autour de Y. Sert a orienter un panneau vers l'allee. double? rotationY; @override bool operator ==(Object other) => identical(this, other) || other is Position3D && other.x == x && other.y == y && other.z == z && other.rotationY == rotationY; @override int get hashCode => x.hashCode + y.hashCode + z.hashCode + (rotationY == null ? 0 : rotationY!.hashCode); @override String toString() => 'Position3D[x=$x, y=$y, z=$z, rotationY=$rotationY]'; Map toJson() { final json = {}; json[r'x'] = this.x; json[r'y'] = this.y; json[r'z'] = this.z; if (this.rotationY != null) { json[r'rotationY'] = this.rotationY; } else { json[r'rotationY'] = null; } return json; } static Position3D? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); return Position3D( x: mapValueOfType(json, r'x')?.toDouble() ?? 0, y: mapValueOfType(json, r'y')?.toDouble() ?? 0, z: mapValueOfType(json, r'z')?.toDouble() ?? 0, rotationY: mapValueOfType(json, r'rotationY')?.toDouble(), ); } 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 = Position3D.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 = Position3D.fromJson(entry.value); if (value != null) { map[entry.key] = value; } } } return map; } static const requiredKeys = {}; }