Lidoapi_ofp.dart 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555
  1. class LidoapiOfp {
  2. LidoapiOfp({
  3. required this.briefingPackages,
  4. required this.categories,
  5. required this.merge,
  6. required this.bpRestrictions,
  7. required this.categoriesNames,
  8. });
  9. final List<BriefingPackage> briefingPackages;
  10. static const String briefingPackagesKey = "briefingPackages";
  11. final List<Category> categories;
  12. static const String categoriesKey = "categories";
  13. final bool? merge;
  14. static const String mergeKey = "merge";
  15. final List<dynamic> bpRestrictions;
  16. static const String bpRestrictionsKey = "bpRestrictions";
  17. final CategoriesNames? categoriesNames;
  18. static const String categoriesNamesKey = "categoriesNames";
  19. LidoapiOfp copyWith({
  20. List<BriefingPackage>? briefingPackages,
  21. List<Category>? categories,
  22. bool? merge,
  23. List<dynamic>? bpRestrictions,
  24. CategoriesNames? categoriesNames,
  25. }) {
  26. return LidoapiOfp(
  27. briefingPackages: briefingPackages ?? this.briefingPackages,
  28. categories: categories ?? this.categories,
  29. merge: merge ?? this.merge,
  30. bpRestrictions: bpRestrictions ?? this.bpRestrictions,
  31. categoriesNames: categoriesNames ?? this.categoriesNames,
  32. );
  33. }
  34. factory LidoapiOfp.fromJson(Map<String, dynamic> json) {
  35. return LidoapiOfp(
  36. briefingPackages: json["briefingPackages"] == null
  37. ? []
  38. : List<BriefingPackage>.from(json["briefingPackages"]!
  39. .map((x) => BriefingPackage.fromJson(x))),
  40. categories: json["categories"] == null
  41. ? []
  42. : List<Category>.from(
  43. json["categories"]!.map((x) => Category.fromJson(x))),
  44. merge: json["merge"],
  45. bpRestrictions: json["bpRestrictions"] == null
  46. ? []
  47. : List<dynamic>.from(json["bpRestrictions"]!.map((x) => x)),
  48. categoriesNames: json["categoriesNames"] == null
  49. ? null
  50. : CategoriesNames.fromJson(json["categoriesNames"]),
  51. );
  52. }
  53. Map<String, dynamic> toJson() => {
  54. "briefingPackages": briefingPackages.map((x) => x.toJson()).toList(),
  55. "categories": categories.map((x) => x.toJson()).toList(),
  56. "merge": merge,
  57. "bpRestrictions": bpRestrictions.map((x) => x).toList(),
  58. "categoriesNames": categoriesNames?.toJson(),
  59. };
  60. @override
  61. String toString() {
  62. return "$briefingPackages, $categories, $merge, $bpRestrictions, $categoriesNames, ";
  63. }
  64. }
  65. class BriefingPackage {
  66. BriefingPackage({
  67. required this.status,
  68. required this.previousStatus,
  69. required this.leg,
  70. required this.categories,
  71. required this.lidoBriefingData,
  72. required this.flightLegIdentifier,
  73. required this.briefingPackageDocuments,
  74. required this.briefingPackageOrigin,
  75. required this.briefingPackageConfirmationHistory,
  76. required this.bpVersion,
  77. required this.version,
  78. required this.creationTimeStamp,
  79. required this.latestFuelOrder,
  80. required this.interfaceHistory,
  81. required this.links,
  82. });
  83. final String? status;
  84. static const String statusKey = "status";
  85. final String? previousStatus;
  86. static const String previousStatusKey = "previousStatus";
  87. final List<Leg> leg;
  88. static const String legKey = "leg";
  89. final List<Category> categories;
  90. static const String categoriesKey = "categories";
  91. final LidoBriefingData? lidoBriefingData;
  92. static const String lidoBriefingDataKey = "lidoBriefingData";
  93. final dynamic flightLegIdentifier;
  94. static const String flightLegIdentifierKey = "flightLegIdentifier";
  95. final List<BriefingPackageDocument> briefingPackageDocuments;
  96. static const String briefingPackageDocumentsKey = "briefingPackageDocuments";
  97. final String? briefingPackageOrigin;
  98. static const String briefingPackageOriginKey = "briefingPackageOrigin";
  99. final List<dynamic> briefingPackageConfirmationHistory;
  100. static const String briefingPackageConfirmationHistoryKey =
  101. "briefingPackageConfirmationHistory";
  102. final int? bpVersion;
  103. static const String bpVersionKey = "bpVersion";
  104. final int? version;
  105. static const String versionKey = "version";
  106. final int? creationTimeStamp;
  107. static const String creationTimeStampKey = "creationTimeStamp";
  108. final dynamic latestFuelOrder;
  109. static const String latestFuelOrderKey = "latestFuelOrder";
  110. final InterfaceHistory? interfaceHistory;
  111. static const String interfaceHistoryKey = "interfaceHistory";
  112. final Links? links;
  113. static const String linksKey = "_links";
  114. BriefingPackage copyWith({
  115. String? status,
  116. String? previousStatus,
  117. List<Leg>? leg,
  118. List<Category>? categories,
  119. LidoBriefingData? lidoBriefingData,
  120. dynamic flightLegIdentifier,
  121. List<BriefingPackageDocument>? briefingPackageDocuments,
  122. String? briefingPackageOrigin,
  123. List<dynamic>? briefingPackageConfirmationHistory,
  124. int? bpVersion,
  125. int? version,
  126. int? creationTimeStamp,
  127. dynamic latestFuelOrder,
  128. InterfaceHistory? interfaceHistory,
  129. Links? links,
  130. }) {
  131. return BriefingPackage(
  132. status: status ?? this.status,
  133. previousStatus: previousStatus ?? this.previousStatus,
  134. leg: leg ?? this.leg,
  135. categories: categories ?? this.categories,
  136. lidoBriefingData: lidoBriefingData ?? this.lidoBriefingData,
  137. flightLegIdentifier: flightLegIdentifier ?? this.flightLegIdentifier,
  138. briefingPackageDocuments:
  139. briefingPackageDocuments ?? this.briefingPackageDocuments,
  140. briefingPackageOrigin:
  141. briefingPackageOrigin ?? this.briefingPackageOrigin,
  142. briefingPackageConfirmationHistory: briefingPackageConfirmationHistory ??
  143. this.briefingPackageConfirmationHistory,
  144. bpVersion: bpVersion ?? this.bpVersion,
  145. version: version ?? this.version,
  146. creationTimeStamp: creationTimeStamp ?? this.creationTimeStamp,
  147. latestFuelOrder: latestFuelOrder ?? this.latestFuelOrder,
  148. interfaceHistory: interfaceHistory ?? this.interfaceHistory,
  149. links: links ?? this.links,
  150. );
  151. }
  152. factory BriefingPackage.fromJson(Map<String, dynamic> json) {
  153. return BriefingPackage(
  154. status: json["status"],
  155. previousStatus: json["previousStatus"],
  156. leg: json["leg"] == null
  157. ? []
  158. : List<Leg>.from(json["leg"]!.map((x) => Leg.fromJson(x))),
  159. categories: json["categories"] == null
  160. ? []
  161. : List<Category>.from(
  162. json["categories"]!.map((x) => Category.fromJson(x))),
  163. lidoBriefingData: json["lidoBriefingData"] == null
  164. ? null
  165. : LidoBriefingData.fromJson(json["lidoBriefingData"]),
  166. flightLegIdentifier: json["flightLegIdentifier"],
  167. briefingPackageDocuments: json["briefingPackageDocuments"] == null
  168. ? []
  169. : List<BriefingPackageDocument>.from(json["briefingPackageDocuments"]!
  170. .map((x) => BriefingPackageDocument.fromJson(x))),
  171. briefingPackageOrigin: json["briefingPackageOrigin"],
  172. briefingPackageConfirmationHistory:
  173. json["briefingPackageConfirmationHistory"] == null
  174. ? []
  175. : List<dynamic>.from(
  176. json["briefingPackageConfirmationHistory"]!.map((x) => x)),
  177. bpVersion: json["bpVersion"],
  178. version: json["version"],
  179. creationTimeStamp: json["creationTimeStamp"],
  180. latestFuelOrder: json["latestFuelOrder"],
  181. interfaceHistory: json["interfaceHistory"] == null
  182. ? null
  183. : InterfaceHistory.fromJson(json["interfaceHistory"]),
  184. links: json["_links"] == null ? null : Links.fromJson(json["_links"]),
  185. );
  186. }
  187. Map<String, dynamic> toJson() => {
  188. "status": status,
  189. "previousStatus": previousStatus,
  190. "leg": leg.map((x) => x.toJson()).toList(),
  191. "categories": categories.map((x) => x.toJson()).toList(),
  192. "lidoBriefingData": lidoBriefingData?.toJson(),
  193. "flightLegIdentifier": flightLegIdentifier,
  194. "briefingPackageDocuments":
  195. briefingPackageDocuments.map((x) => x.toJson()).toList(),
  196. "briefingPackageOrigin": briefingPackageOrigin,
  197. "briefingPackageConfirmationHistory":
  198. briefingPackageConfirmationHistory.map((x) => x).toList(),
  199. "bpVersion": bpVersion,
  200. "version": version,
  201. "creationTimeStamp": creationTimeStamp,
  202. "latestFuelOrder": latestFuelOrder,
  203. "interfaceHistory": interfaceHistory?.toJson(),
  204. "_links": links?.toJson(),
  205. };
  206. @override
  207. String toString() {
  208. return "$status, $previousStatus, $leg, $categories, $lidoBriefingData, $flightLegIdentifier, $briefingPackageDocuments, $briefingPackageOrigin, $briefingPackageConfirmationHistory, $bpVersion, $version, $creationTimeStamp, $latestFuelOrder, $interfaceHistory, $links, ";
  209. }
  210. }
  211. class BriefingPackageDocument {
  212. BriefingPackageDocument({
  213. required this.name,
  214. required this.creationTime,
  215. required this.printedBy,
  216. });
  217. final String? name;
  218. static const String nameKey = "name";
  219. final int? creationTime;
  220. static const String creationTimeKey = "creationTime";
  221. final String? printedBy;
  222. static const String printedByKey = "printedBy";
  223. BriefingPackageDocument copyWith({
  224. String? name,
  225. int? creationTime,
  226. String? printedBy,
  227. }) {
  228. return BriefingPackageDocument(
  229. name: name ?? this.name,
  230. creationTime: creationTime ?? this.creationTime,
  231. printedBy: printedBy ?? this.printedBy,
  232. );
  233. }
  234. factory BriefingPackageDocument.fromJson(Map<String, dynamic> json) {
  235. return BriefingPackageDocument(
  236. name: json["name"],
  237. creationTime: json["creationTime"],
  238. printedBy: json["printedBy"],
  239. );
  240. }
  241. Map<String, dynamic> toJson() => {
  242. "name": name,
  243. "creationTime": creationTime,
  244. "printedBy": printedBy,
  245. };
  246. @override
  247. String toString() {
  248. return "$name, $creationTime, $printedBy, ";
  249. }
  250. }
  251. class Category {
  252. Category({
  253. required this.name,
  254. required this.documents,
  255. required this.flightRelated,
  256. required this.type,
  257. required this.links,
  258. });
  259. final String? name;
  260. static const String nameKey = "name";
  261. final List<Document> documents;
  262. static const String documentsKey = "documents";
  263. final bool? flightRelated;
  264. static const String flightRelatedKey = "flightRelated";
  265. final String? type;
  266. static const String typeKey = "type";
  267. final Links? links;
  268. static const String linksKey = "_links";
  269. Category copyWith({
  270. String? name,
  271. List<Document>? documents,
  272. bool? flightRelated,
  273. String? type,
  274. Links? links,
  275. }) {
  276. return Category(
  277. name: name ?? this.name,
  278. documents: documents ?? this.documents,
  279. flightRelated: flightRelated ?? this.flightRelated,
  280. type: type ?? this.type,
  281. links: links ?? this.links,
  282. );
  283. }
  284. factory Category.fromJson(Map<String, dynamic> json) {
  285. return Category(
  286. name: json["name"],
  287. documents: json["documents"] == null
  288. ? []
  289. : List<Document>.from(
  290. json["documents"]!.map((x) => Document.fromJson(x))),
  291. flightRelated: json["flightRelated"],
  292. type: json["type"],
  293. links: json["_links"] == null ? null : Links.fromJson(json["_links"]),
  294. );
  295. }
  296. Map<String, dynamic> toJson() => {
  297. "name": name,
  298. "documents": documents.map((x) => x.toJson()).toList(),
  299. "flightRelated": flightRelated,
  300. "type": type,
  301. "_links": links?.toJson(),
  302. };
  303. @override
  304. String toString() {
  305. return "$name, $documents, $flightRelated, $type, $links, ";
  306. }
  307. }
  308. class Document {
  309. Document({
  310. required this.fileId,
  311. required this.legIdentifier,
  312. required this.mediaType,
  313. required this.creationTime,
  314. required this.metadata,
  315. required this.links,
  316. required this.fileName,
  317. });
  318. final String? fileId;
  319. static const String fileIdKey = "fileId";
  320. final String? legIdentifier;
  321. static const String legIdentifierKey = "legIdentifier";
  322. final String? mediaType;
  323. static const String mediaTypeKey = "mediaType";
  324. final int? creationTime;
  325. static const String creationTimeKey = "creationTime";
  326. final List<Metadatum> metadata;
  327. static const String metadataKey = "metadata";
  328. final Links? links;
  329. static const String linksKey = "_links";
  330. final String? fileName;
  331. static const String fileNameKey = "fileName";
  332. Document copyWith({
  333. String? fileId,
  334. String? legIdentifier,
  335. String? mediaType,
  336. int? creationTime,
  337. List<Metadatum>? metadata,
  338. Links? links,
  339. String? fileName,
  340. }) {
  341. return Document(
  342. fileId: fileId ?? this.fileId,
  343. legIdentifier: legIdentifier ?? this.legIdentifier,
  344. mediaType: mediaType ?? this.mediaType,
  345. creationTime: creationTime ?? this.creationTime,
  346. metadata: metadata ?? this.metadata,
  347. links: links ?? this.links,
  348. fileName: fileName ?? this.fileName,
  349. );
  350. }
  351. factory Document.fromJson(Map<String, dynamic> json) {
  352. return Document(
  353. fileId: json["fileId"],
  354. legIdentifier: json["legIdentifier"],
  355. mediaType: json["mediaType"],
  356. creationTime: json["creationTime"],
  357. metadata: json["metadata"] == null
  358. ? []
  359. : List<Metadatum>.from(
  360. json["metadata"]!.map((x) => Metadatum.fromJson(x))),
  361. links: json["_links"] == null ? null : Links.fromJson(json["_links"]),
  362. fileName: json["fileName"],
  363. );
  364. }
  365. Map<String, dynamic> toJson() => {
  366. "fileId": fileId,
  367. "legIdentifier": legIdentifier,
  368. "mediaType": mediaType,
  369. "creationTime": creationTime,
  370. "metadata": metadata.map((x) => x.toJson()).toList(),
  371. "_links": links?.toJson(),
  372. "fileName": fileName,
  373. };
  374. @override
  375. String toString() {
  376. return "$fileId, $legIdentifier, $mediaType, $creationTime, $metadata, $links, $fileName, ";
  377. }
  378. }
  379. class Links {
  380. Links({
  381. required this.self,
  382. });
  383. final Self? self;
  384. static const String selfKey = "self";
  385. Links copyWith({
  386. Self? self,
  387. }) {
  388. return Links(
  389. self: self ?? this.self,
  390. );
  391. }
  392. factory Links.fromJson(Map<String, dynamic> json) {
  393. return Links(
  394. self: json["self"] == null ? null : Self.fromJson(json["self"]),
  395. );
  396. }
  397. Map<String, dynamic> toJson() => {
  398. "self": self?.toJson(),
  399. };
  400. @override
  401. String toString() {
  402. return "$self, ";
  403. }
  404. }
  405. class Self {
  406. Self({
  407. required this.href,
  408. });
  409. final String? href;
  410. static const String hrefKey = "href";
  411. Self copyWith({
  412. String? href,
  413. }) {
  414. return Self(
  415. href: href ?? this.href,
  416. );
  417. }
  418. factory Self.fromJson(Map<String, dynamic> json) {
  419. return Self(
  420. href: json["href"],
  421. );
  422. }
  423. Map<String, dynamic> toJson() => {
  424. "href": href,
  425. };
  426. @override
  427. String toString() {
  428. return "$href, ";
  429. }
  430. }
  431. class Metadatum {
  432. Metadatum({
  433. required this.key,
  434. required this.value,
  435. });
  436. final String? key;
  437. static const String keyKey = "key";
  438. final dynamic value;
  439. static const String valueKey = "value";
  440. Metadatum copyWith({
  441. String? key,
  442. dynamic value,
  443. }) {
  444. return Metadatum(
  445. key: key ?? this.key,
  446. value: value ?? this.value,
  447. );
  448. }
  449. factory Metadatum.fromJson(Map<String, dynamic> json) {
  450. return Metadatum(
  451. key: json["key"],
  452. value: json["value"],
  453. );
  454. }
  455. Map<String, dynamic> toJson() => {
  456. "key": key,
  457. "value": value,
  458. };
  459. @override
  460. String toString() {
  461. return "$key, $value, ";
  462. }
  463. }
  464. class InterfaceHistory {
  465. InterfaceHistory({
  466. required this.interfaceTimestamp,
  467. });
  468. final int? interfaceTimestamp;
  469. static const String interfaceTimestampKey = "interfaceTimestamp";
  470. InterfaceHistory copyWith({
  471. int? interfaceTimestamp,
  472. }) {
  473. return InterfaceHistory(
  474. interfaceTimestamp: interfaceTimestamp ?? this.interfaceTimestamp,
  475. );
  476. }
  477. factory InterfaceHistory.fromJson(Map<String, dynamic> json) {
  478. return InterfaceHistory(
  479. interfaceTimestamp: json["interfaceTimestamp"],
  480. );
  481. }
  482. Map<String, dynamic> toJson() => {
  483. "interfaceTimestamp": interfaceTimestamp,
  484. };
  485. @override
  486. String toString() {
  487. return "$interfaceTimestamp, ";
  488. }
  489. }
  490. class Leg {
  491. Leg({
  492. required this.legidentifier,
  493. required this.commercialAirlineIata,
  494. required this.commercialAirlineIcao,
  495. required this.flightNumber,
  496. required this.operationalSuffix,
  497. required this.aircraftOperatorIata,
  498. required this.aircraftOperatorIcao,
  499. required this.departureAirport,
  500. required this.destinationAirport,
  501. required this.ofpNumber,
  502. required this.aircraftDetails,
  503. required this.dispatcherInformation,
  504. required this.ctot,
  505. required this.slotAction,
  506. required this.estimatedDepartureTime,
  507. required this.scheduledDepartureTime,
  508. required this.estimatedTimeOfArrival,
  509. required this.scheduledTimeOfArrival,
  510. required this.crewMembers,
  511. required this.fuel,
  512. required this.weight,
  513. required this.reclearanceIndicator,
  514. required this.dateOfOrigin,
  515. required this.dateOfOperation,
  516. required this.masterOffice,
  517. required this.responsibleOffice,
  518. required this.flightDuplicationNumber,
  519. required this.destinationAirportIcao,
  520. required this.departureAirportIcao,
  521. required this.flightRoute,
  522. });
  523. final String? legidentifier;
  524. static const String legidentifierKey = "legidentifier";
  525. final String? commercialAirlineIata;
  526. static const String commercialAirlineIataKey = "commercialAirlineIATA";
  527. final String? commercialAirlineIcao;
  528. static const String commercialAirlineIcaoKey = "commercialAirlineICAO";
  529. final String? flightNumber;
  530. static const String flightNumberKey = "flightNumber";
  531. final String? operationalSuffix;
  532. static const String operationalSuffixKey = "operationalSuffix";
  533. final String? aircraftOperatorIata;
  534. static const String aircraftOperatorIataKey = "aircraftOperatorIATA";
  535. final String? aircraftOperatorIcao;
  536. static const String aircraftOperatorIcaoKey = "aircraftOperatorICAO";
  537. final String? departureAirport;
  538. static const String departureAirportKey = "departureAirport";
  539. final String? destinationAirport;
  540. static const String destinationAirportKey = "destinationAirport";
  541. final String? ofpNumber;
  542. static const String ofpNumberKey = "ofpNumber";
  543. final AircraftDetails? aircraftDetails;
  544. static const String aircraftDetailsKey = "aircraftDetails";
  545. final DispatcherInformation? dispatcherInformation;
  546. static const String dispatcherInformationKey = "dispatcherInformation";
  547. final int? ctot;
  548. static const String ctotKey = "ctot";
  549. final String? slotAction;
  550. static const String slotActionKey = "slotAction";
  551. final int? estimatedDepartureTime;
  552. static const String estimatedDepartureTimeKey = "estimatedDepartureTime";
  553. final int? scheduledDepartureTime;
  554. static const String scheduledDepartureTimeKey = "scheduledDepartureTime";
  555. final int? estimatedTimeOfArrival;
  556. static const String estimatedTimeOfArrivalKey = "estimatedTimeOfArrival";
  557. final int? scheduledTimeOfArrival;
  558. static const String scheduledTimeOfArrivalKey = "scheduledTimeOfArrival";
  559. final List<CrewMember> crewMembers;
  560. static const String crewMembersKey = "crewMembers";
  561. final Fuel? fuel;
  562. static const String fuelKey = "fuel";
  563. final Weight? weight;
  564. static const String weightKey = "weight";
  565. final bool? reclearanceIndicator;
  566. static const String reclearanceIndicatorKey = "reclearanceIndicator";
  567. final int? dateOfOrigin;
  568. static const String dateOfOriginKey = "dateOfOrigin";
  569. final int? dateOfOperation;
  570. static const String dateOfOperationKey = "dateOfOperation";
  571. final String? masterOffice;
  572. static const String masterOfficeKey = "masterOffice";
  573. final String? responsibleOffice;
  574. static const String responsibleOfficeKey = "responsibleOffice";
  575. final dynamic flightDuplicationNumber;
  576. static const String flightDuplicationNumberKey = "flightDuplicationNumber";
  577. final String? destinationAirportIcao;
  578. static const String destinationAirportIcaoKey = "destinationAirportICAO";
  579. final String? departureAirportIcao;
  580. static const String departureAirportIcaoKey = "departureAirportICAO";
  581. final String? flightRoute;
  582. static const String flightRouteKey = "flightRoute";
  583. Leg copyWith({
  584. String? legidentifier,
  585. String? commercialAirlineIata,
  586. String? commercialAirlineIcao,
  587. String? flightNumber,
  588. String? operationalSuffix,
  589. String? aircraftOperatorIata,
  590. String? aircraftOperatorIcao,
  591. String? departureAirport,
  592. String? destinationAirport,
  593. String? ofpNumber,
  594. AircraftDetails? aircraftDetails,
  595. DispatcherInformation? dispatcherInformation,
  596. int? ctot,
  597. String? slotAction,
  598. int? estimatedDepartureTime,
  599. int? scheduledDepartureTime,
  600. int? estimatedTimeOfArrival,
  601. int? scheduledTimeOfArrival,
  602. List<CrewMember>? crewMembers,
  603. Fuel? fuel,
  604. Weight? weight,
  605. bool? reclearanceIndicator,
  606. int? dateOfOrigin,
  607. int? dateOfOperation,
  608. String? masterOffice,
  609. String? responsibleOffice,
  610. dynamic flightDuplicationNumber,
  611. String? destinationAirportIcao,
  612. String? departureAirportIcao,
  613. String? flightRoute,
  614. }) {
  615. return Leg(
  616. legidentifier: legidentifier ?? this.legidentifier,
  617. commercialAirlineIata:
  618. commercialAirlineIata ?? this.commercialAirlineIata,
  619. commercialAirlineIcao:
  620. commercialAirlineIcao ?? this.commercialAirlineIcao,
  621. flightNumber: flightNumber ?? this.flightNumber,
  622. operationalSuffix: operationalSuffix ?? this.operationalSuffix,
  623. aircraftOperatorIata: aircraftOperatorIata ?? this.aircraftOperatorIata,
  624. aircraftOperatorIcao: aircraftOperatorIcao ?? this.aircraftOperatorIcao,
  625. departureAirport: departureAirport ?? this.departureAirport,
  626. destinationAirport: destinationAirport ?? this.destinationAirport,
  627. ofpNumber: ofpNumber ?? this.ofpNumber,
  628. aircraftDetails: aircraftDetails ?? this.aircraftDetails,
  629. dispatcherInformation:
  630. dispatcherInformation ?? this.dispatcherInformation,
  631. ctot: ctot ?? this.ctot,
  632. slotAction: slotAction ?? this.slotAction,
  633. estimatedDepartureTime:
  634. estimatedDepartureTime ?? this.estimatedDepartureTime,
  635. scheduledDepartureTime:
  636. scheduledDepartureTime ?? this.scheduledDepartureTime,
  637. estimatedTimeOfArrival:
  638. estimatedTimeOfArrival ?? this.estimatedTimeOfArrival,
  639. scheduledTimeOfArrival:
  640. scheduledTimeOfArrival ?? this.scheduledTimeOfArrival,
  641. crewMembers: crewMembers ?? this.crewMembers,
  642. fuel: fuel ?? this.fuel,
  643. weight: weight ?? this.weight,
  644. reclearanceIndicator: reclearanceIndicator ?? this.reclearanceIndicator,
  645. dateOfOrigin: dateOfOrigin ?? this.dateOfOrigin,
  646. dateOfOperation: dateOfOperation ?? this.dateOfOperation,
  647. masterOffice: masterOffice ?? this.masterOffice,
  648. responsibleOffice: responsibleOffice ?? this.responsibleOffice,
  649. flightDuplicationNumber:
  650. flightDuplicationNumber ?? this.flightDuplicationNumber,
  651. destinationAirportIcao:
  652. destinationAirportIcao ?? this.destinationAirportIcao,
  653. departureAirportIcao: departureAirportIcao ?? this.departureAirportIcao,
  654. flightRoute: flightRoute ?? this.flightRoute,
  655. );
  656. }
  657. factory Leg.fromJson(Map<String, dynamic> json) {
  658. return Leg(
  659. legidentifier: json["legidentifier"],
  660. commercialAirlineIata: json["commercialAirlineIATA"],
  661. commercialAirlineIcao: json["commercialAirlineICAO"],
  662. flightNumber: json["flightNumber"],
  663. operationalSuffix: json["operationalSuffix"],
  664. aircraftOperatorIata: json["aircraftOperatorIATA"],
  665. aircraftOperatorIcao: json["aircraftOperatorICAO"],
  666. departureAirport: json["departureAirport"],
  667. destinationAirport: json["destinationAirport"],
  668. ofpNumber: json["ofpNumber"],
  669. aircraftDetails: json["aircraftDetails"] == null
  670. ? null
  671. : AircraftDetails.fromJson(json["aircraftDetails"]),
  672. dispatcherInformation: json["dispatcherInformation"] == null
  673. ? null
  674. : DispatcherInformation.fromJson(json["dispatcherInformation"]),
  675. ctot: json["ctot"],
  676. slotAction: json["slotAction"],
  677. estimatedDepartureTime: json["estimatedDepartureTime"],
  678. scheduledDepartureTime: json["scheduledDepartureTime"],
  679. estimatedTimeOfArrival: json["estimatedTimeOfArrival"],
  680. scheduledTimeOfArrival: json["scheduledTimeOfArrival"],
  681. crewMembers: json["crewMembers"] == null
  682. ? []
  683. : List<CrewMember>.from(
  684. json["crewMembers"]!.map((x) => CrewMember.fromJson(x))),
  685. fuel: json["fuel"] == null ? null : Fuel.fromJson(json["fuel"]),
  686. weight: json["weight"] == null ? null : Weight.fromJson(json["weight"]),
  687. reclearanceIndicator: json["reclearanceIndicator"],
  688. dateOfOrigin: json["dateOfOrigin"],
  689. dateOfOperation: json["dateOfOperation"],
  690. masterOffice: json["masterOffice"],
  691. responsibleOffice: json["responsibleOffice"],
  692. flightDuplicationNumber: json["flightDuplicationNumber"],
  693. destinationAirportIcao: json["destinationAirportICAO"],
  694. departureAirportIcao: json["departureAirportICAO"],
  695. flightRoute: json["flightRoute"],
  696. );
  697. }
  698. Map<String, dynamic> toJson() => {
  699. "legidentifier": legidentifier,
  700. "commercialAirlineIATA": commercialAirlineIata,
  701. "commercialAirlineICAO": commercialAirlineIcao,
  702. "flightNumber": flightNumber,
  703. "operationalSuffix": operationalSuffix,
  704. "aircraftOperatorIATA": aircraftOperatorIata,
  705. "aircraftOperatorICAO": aircraftOperatorIcao,
  706. "departureAirport": departureAirport,
  707. "destinationAirport": destinationAirport,
  708. "ofpNumber": ofpNumber,
  709. "aircraftDetails": aircraftDetails?.toJson(),
  710. "dispatcherInformation": dispatcherInformation?.toJson(),
  711. "ctot": ctot,
  712. "slotAction": slotAction,
  713. "estimatedDepartureTime": estimatedDepartureTime,
  714. "scheduledDepartureTime": scheduledDepartureTime,
  715. "estimatedTimeOfArrival": estimatedTimeOfArrival,
  716. "scheduledTimeOfArrival": scheduledTimeOfArrival,
  717. "crewMembers": crewMembers.map((x) => x.toJson()).toList(),
  718. "fuel": fuel?.toJson(),
  719. "weight": weight?.toJson(),
  720. "reclearanceIndicator": reclearanceIndicator,
  721. "dateOfOrigin": dateOfOrigin,
  722. "dateOfOperation": dateOfOperation,
  723. "masterOffice": masterOffice,
  724. "responsibleOffice": responsibleOffice,
  725. "flightDuplicationNumber": flightDuplicationNumber,
  726. "destinationAirportICAO": destinationAirportIcao,
  727. "departureAirportICAO": departureAirportIcao,
  728. "flightRoute": flightRoute,
  729. };
  730. @override
  731. String toString() {
  732. return "$legidentifier, $commercialAirlineIata, $commercialAirlineIcao, $flightNumber, $operationalSuffix, $aircraftOperatorIata, $aircraftOperatorIcao, $departureAirport, $destinationAirport, $ofpNumber, $aircraftDetails, $dispatcherInformation, $ctot, $slotAction, $estimatedDepartureTime, $scheduledDepartureTime, $estimatedTimeOfArrival, $scheduledTimeOfArrival, $crewMembers, $fuel, $weight, $reclearanceIndicator, $dateOfOrigin, $dateOfOperation, $masterOffice, $responsibleOffice, $flightDuplicationNumber, $destinationAirportIcao, $departureAirportIcao, $flightRoute, ";
  733. }
  734. }
  735. class AircraftDetails {
  736. AircraftDetails({
  737. required this.aircraftRegistration,
  738. required this.aircraftModel,
  739. required this.aircraftIcaoType,
  740. });
  741. final String? aircraftRegistration;
  742. static const String aircraftRegistrationKey = "aircraftRegistration";
  743. final String? aircraftModel;
  744. static const String aircraftModelKey = "aircraftModel";
  745. final String? aircraftIcaoType;
  746. static const String aircraftIcaoTypeKey = "aircraftICAOType";
  747. AircraftDetails copyWith({
  748. String? aircraftRegistration,
  749. String? aircraftModel,
  750. String? aircraftIcaoType,
  751. }) {
  752. return AircraftDetails(
  753. aircraftRegistration: aircraftRegistration ?? this.aircraftRegistration,
  754. aircraftModel: aircraftModel ?? this.aircraftModel,
  755. aircraftIcaoType: aircraftIcaoType ?? this.aircraftIcaoType,
  756. );
  757. }
  758. factory AircraftDetails.fromJson(Map<String, dynamic> json) {
  759. return AircraftDetails(
  760. aircraftRegistration: json["aircraftRegistration"],
  761. aircraftModel: json["aircraftModel"],
  762. aircraftIcaoType: json["aircraftICAOType"],
  763. );
  764. }
  765. Map<String, dynamic> toJson() => {
  766. "aircraftRegistration": aircraftRegistration,
  767. "aircraftModel": aircraftModel,
  768. "aircraftICAOType": aircraftIcaoType,
  769. };
  770. @override
  771. String toString() {
  772. return "$aircraftRegistration, $aircraftModel, $aircraftIcaoType, ";
  773. }
  774. }
  775. class CrewMember {
  776. CrewMember({
  777. required this.position,
  778. required this.name,
  779. required this.crewId,
  780. });
  781. final String? position;
  782. static const String positionKey = "position";
  783. final String? name;
  784. static const String nameKey = "name";
  785. final String? crewId;
  786. static const String crewIdKey = "crewId";
  787. CrewMember copyWith({
  788. String? position,
  789. String? name,
  790. String? crewId,
  791. }) {
  792. return CrewMember(
  793. position: position ?? this.position,
  794. name: name ?? this.name,
  795. crewId: crewId ?? this.crewId,
  796. );
  797. }
  798. factory CrewMember.fromJson(Map<String, dynamic> json) {
  799. return CrewMember(
  800. position: json["position"],
  801. name: json["name"],
  802. crewId: json["crewId"],
  803. );
  804. }
  805. Map<String, dynamic> toJson() => {
  806. "position": position,
  807. "name": name,
  808. "crewId": crewId,
  809. };
  810. @override
  811. String toString() {
  812. return "$position, $name, $crewId, ";
  813. }
  814. }
  815. class DispatcherInformation {
  816. DispatcherInformation({
  817. required this.dispatchOffice,
  818. required this.dispatcherName,
  819. required this.dispatcherTelephoneNumber,
  820. required this.dispatcherRemarks,
  821. });
  822. final String? dispatchOffice;
  823. static const String dispatchOfficeKey = "dispatchOffice";
  824. final String? dispatcherName;
  825. static const String dispatcherNameKey = "dispatcherName";
  826. final String? dispatcherTelephoneNumber;
  827. static const String dispatcherTelephoneNumberKey =
  828. "dispatcherTelephoneNumber";
  829. final dynamic dispatcherRemarks;
  830. static const String dispatcherRemarksKey = "dispatcherRemarks";
  831. DispatcherInformation copyWith({
  832. String? dispatchOffice,
  833. String? dispatcherName,
  834. String? dispatcherTelephoneNumber,
  835. dynamic dispatcherRemarks,
  836. }) {
  837. return DispatcherInformation(
  838. dispatchOffice: dispatchOffice ?? this.dispatchOffice,
  839. dispatcherName: dispatcherName ?? this.dispatcherName,
  840. dispatcherTelephoneNumber:
  841. dispatcherTelephoneNumber ?? this.dispatcherTelephoneNumber,
  842. dispatcherRemarks: dispatcherRemarks ?? this.dispatcherRemarks,
  843. );
  844. }
  845. factory DispatcherInformation.fromJson(Map<String, dynamic> json) {
  846. return DispatcherInformation(
  847. dispatchOffice: json["dispatchOffice"],
  848. dispatcherName: json["dispatcherName"],
  849. dispatcherTelephoneNumber: json["dispatcherTelephoneNumber"],
  850. dispatcherRemarks: json["dispatcherRemarks"],
  851. );
  852. }
  853. Map<String, dynamic> toJson() => {
  854. "dispatchOffice": dispatchOffice,
  855. "dispatcherName": dispatcherName,
  856. "dispatcherTelephoneNumber": dispatcherTelephoneNumber,
  857. "dispatcherRemarks": dispatcherRemarks,
  858. };
  859. @override
  860. String toString() {
  861. return "$dispatchOffice, $dispatcherName, $dispatcherTelephoneNumber, $dispatcherRemarks, ";
  862. }
  863. }
  864. class Fuel {
  865. Fuel({
  866. required this.unitOfMeasure,
  867. required this.tankCapacity,
  868. required this.averageFuelFlow,
  869. required this.taxiFuel,
  870. required this.tripFuel,
  871. required this.blockFuel,
  872. required this.possibleExtra,
  873. required this.totalTripTimeMinutes,
  874. required this.taxiTimeMinutes,
  875. required this.estimTotalFlightTime,
  876. required this.takeOffFuel,
  877. required this.takeOffFuelTime,
  878. required this.averageTaxiFuelFlow,
  879. required this.fuelOnBoard,
  880. });
  881. final String? unitOfMeasure;
  882. static const String unitOfMeasureKey = "unitOfMeasure";
  883. final int? tankCapacity;
  884. static const String tankCapacityKey = "tankCapacity";
  885. final int? averageFuelFlow;
  886. static const String averageFuelFlowKey = "averageFuelFlow";
  887. final int? taxiFuel;
  888. static const String taxiFuelKey = "taxiFuel";
  889. final int? tripFuel;
  890. static const String tripFuelKey = "tripFuel";
  891. final int? blockFuel;
  892. static const String blockFuelKey = "blockFuel";
  893. final int? possibleExtra;
  894. static const String possibleExtraKey = "possibleExtra";
  895. final int? totalTripTimeMinutes;
  896. static const String totalTripTimeMinutesKey = "totalTripTimeMinutes";
  897. final int? taxiTimeMinutes;
  898. static const String taxiTimeMinutesKey = "taxiTimeMinutes";
  899. final int? estimTotalFlightTime;
  900. static const String estimTotalFlightTimeKey = "estimTotalFlightTime";
  901. final int? takeOffFuel;
  902. static const String takeOffFuelKey = "takeOffFuel";
  903. final int? takeOffFuelTime;
  904. static const String takeOffFuelTimeKey = "takeOffFuelTime";
  905. final int? averageTaxiFuelFlow;
  906. static const String averageTaxiFuelFlowKey = "averageTaxiFuelFlow";
  907. final FuelOnBoard? fuelOnBoard;
  908. static const String fuelOnBoardKey = "fuelOnBoard";
  909. Fuel copyWith({
  910. String? unitOfMeasure,
  911. int? tankCapacity,
  912. int? averageFuelFlow,
  913. int? taxiFuel,
  914. int? tripFuel,
  915. int? blockFuel,
  916. int? possibleExtra,
  917. int? totalTripTimeMinutes,
  918. int? taxiTimeMinutes,
  919. int? estimTotalFlightTime,
  920. int? takeOffFuel,
  921. int? takeOffFuelTime,
  922. int? averageTaxiFuelFlow,
  923. FuelOnBoard? fuelOnBoard,
  924. }) {
  925. return Fuel(
  926. unitOfMeasure: unitOfMeasure ?? this.unitOfMeasure,
  927. tankCapacity: tankCapacity ?? this.tankCapacity,
  928. averageFuelFlow: averageFuelFlow ?? this.averageFuelFlow,
  929. taxiFuel: taxiFuel ?? this.taxiFuel,
  930. tripFuel: tripFuel ?? this.tripFuel,
  931. blockFuel: blockFuel ?? this.blockFuel,
  932. possibleExtra: possibleExtra ?? this.possibleExtra,
  933. totalTripTimeMinutes: totalTripTimeMinutes ?? this.totalTripTimeMinutes,
  934. taxiTimeMinutes: taxiTimeMinutes ?? this.taxiTimeMinutes,
  935. estimTotalFlightTime: estimTotalFlightTime ?? this.estimTotalFlightTime,
  936. takeOffFuel: takeOffFuel ?? this.takeOffFuel,
  937. takeOffFuelTime: takeOffFuelTime ?? this.takeOffFuelTime,
  938. averageTaxiFuelFlow: averageTaxiFuelFlow ?? this.averageTaxiFuelFlow,
  939. fuelOnBoard: fuelOnBoard ?? this.fuelOnBoard,
  940. );
  941. }
  942. factory Fuel.fromJson(Map<String, dynamic> json) {
  943. return Fuel(
  944. unitOfMeasure: json["unitOfMeasure"],
  945. tankCapacity: json["tankCapacity"],
  946. averageFuelFlow: json["averageFuelFlow"],
  947. taxiFuel: json["taxiFuel"],
  948. tripFuel: json["tripFuel"],
  949. blockFuel: json["blockFuel"],
  950. possibleExtra: json["possibleExtra"],
  951. totalTripTimeMinutes: json["totalTripTimeMinutes"],
  952. taxiTimeMinutes: json["taxiTimeMinutes"],
  953. estimTotalFlightTime: json["estimTotalFlightTime"],
  954. takeOffFuel: json["takeOffFuel"],
  955. takeOffFuelTime: json["takeOffFuelTime"],
  956. averageTaxiFuelFlow: json["averageTaxiFuelFlow"],
  957. fuelOnBoard: json["fuelOnBoard"] == null
  958. ? null
  959. : FuelOnBoard.fromJson(json["fuelOnBoard"]),
  960. );
  961. }
  962. Map<String, dynamic> toJson() => {
  963. "unitOfMeasure": unitOfMeasure,
  964. "tankCapacity": tankCapacity,
  965. "averageFuelFlow": averageFuelFlow,
  966. "taxiFuel": taxiFuel,
  967. "tripFuel": tripFuel,
  968. "blockFuel": blockFuel,
  969. "possibleExtra": possibleExtra,
  970. "totalTripTimeMinutes": totalTripTimeMinutes,
  971. "taxiTimeMinutes": taxiTimeMinutes,
  972. "estimTotalFlightTime": estimTotalFlightTime,
  973. "takeOffFuel": takeOffFuel,
  974. "takeOffFuelTime": takeOffFuelTime,
  975. "averageTaxiFuelFlow": averageTaxiFuelFlow,
  976. "fuelOnBoard": fuelOnBoard?.toJson(),
  977. };
  978. @override
  979. String toString() {
  980. return "$unitOfMeasure, $tankCapacity, $averageFuelFlow, $taxiFuel, $tripFuel, $blockFuel, $possibleExtra, $totalTripTimeMinutes, $taxiTimeMinutes, $estimTotalFlightTime, $takeOffFuel, $takeOffFuelTime, $averageTaxiFuelFlow, $fuelOnBoard, ";
  981. }
  982. }
  983. class FuelOnBoard {
  984. FuelOnBoard({
  985. required this.remainingFuel,
  986. required this.unitOfMeasure,
  987. required this.remainingFuelIndicator,
  988. });
  989. final int? remainingFuel;
  990. static const String remainingFuelKey = "remainingFuel";
  991. final String? unitOfMeasure;
  992. static const String unitOfMeasureKey = "unitOfMeasure";
  993. final dynamic remainingFuelIndicator;
  994. static const String remainingFuelIndicatorKey = "remainingFuelIndicator";
  995. FuelOnBoard copyWith({
  996. int? remainingFuel,
  997. String? unitOfMeasure,
  998. dynamic remainingFuelIndicator,
  999. }) {
  1000. return FuelOnBoard(
  1001. remainingFuel: remainingFuel ?? this.remainingFuel,
  1002. unitOfMeasure: unitOfMeasure ?? this.unitOfMeasure,
  1003. remainingFuelIndicator:
  1004. remainingFuelIndicator ?? this.remainingFuelIndicator,
  1005. );
  1006. }
  1007. factory FuelOnBoard.fromJson(Map<String, dynamic> json) {
  1008. return FuelOnBoard(
  1009. remainingFuel: json["remainingFuel"],
  1010. unitOfMeasure: json["unitOfMeasure"],
  1011. remainingFuelIndicator: json["remainingFuelIndicator"],
  1012. );
  1013. }
  1014. Map<String, dynamic> toJson() => {
  1015. "remainingFuel": remainingFuel,
  1016. "unitOfMeasure": unitOfMeasure,
  1017. "remainingFuelIndicator": remainingFuelIndicator,
  1018. };
  1019. @override
  1020. String toString() {
  1021. return "$remainingFuel, $unitOfMeasure, $remainingFuelIndicator, ";
  1022. }
  1023. }
  1024. class Weight {
  1025. Weight({
  1026. required this.maxZfw,
  1027. required this.maxTaxiWeight,
  1028. required this.maxTakeOffWeight,
  1029. required this.plannedZfw,
  1030. required this.restrictedTakeOffWeight,
  1031. required this.maxLandingWeight,
  1032. });
  1033. final int? maxZfw;
  1034. static const String maxZfwKey = "maxZfw";
  1035. final int? maxTaxiWeight;
  1036. static const String maxTaxiWeightKey = "maxTaxiWeight";
  1037. final int? maxTakeOffWeight;
  1038. static const String maxTakeOffWeightKey = "maxTakeOffWeight";
  1039. final int? plannedZfw;
  1040. static const String plannedZfwKey = "plannedZfw";
  1041. final int? restrictedTakeOffWeight;
  1042. static const String restrictedTakeOffWeightKey = "restrictedTakeOffWeight";
  1043. final int? maxLandingWeight;
  1044. static const String maxLandingWeightKey = "maxLandingWeight";
  1045. Weight copyWith({
  1046. int? maxZfw,
  1047. int? maxTaxiWeight,
  1048. int? maxTakeOffWeight,
  1049. int? plannedZfw,
  1050. int? restrictedTakeOffWeight,
  1051. int? maxLandingWeight,
  1052. }) {
  1053. return Weight(
  1054. maxZfw: maxZfw ?? this.maxZfw,
  1055. maxTaxiWeight: maxTaxiWeight ?? this.maxTaxiWeight,
  1056. maxTakeOffWeight: maxTakeOffWeight ?? this.maxTakeOffWeight,
  1057. plannedZfw: plannedZfw ?? this.plannedZfw,
  1058. restrictedTakeOffWeight:
  1059. restrictedTakeOffWeight ?? this.restrictedTakeOffWeight,
  1060. maxLandingWeight: maxLandingWeight ?? this.maxLandingWeight,
  1061. );
  1062. }
  1063. factory Weight.fromJson(Map<String, dynamic> json) {
  1064. return Weight(
  1065. maxZfw: json["maxZfw"],
  1066. maxTaxiWeight: json["maxTaxiWeight"],
  1067. maxTakeOffWeight: json["maxTakeOffWeight"],
  1068. plannedZfw: json["plannedZfw"],
  1069. restrictedTakeOffWeight: json["restrictedTakeOffWeight"],
  1070. maxLandingWeight: json["maxLandingWeight"],
  1071. );
  1072. }
  1073. Map<String, dynamic> toJson() => {
  1074. "maxZfw": maxZfw,
  1075. "maxTaxiWeight": maxTaxiWeight,
  1076. "maxTakeOffWeight": maxTakeOffWeight,
  1077. "plannedZfw": plannedZfw,
  1078. "restrictedTakeOffWeight": restrictedTakeOffWeight,
  1079. "maxLandingWeight": maxLandingWeight,
  1080. };
  1081. @override
  1082. String toString() {
  1083. return "$maxZfw, $maxTaxiWeight, $maxTakeOffWeight, $plannedZfw, $restrictedTakeOffWeight, $maxLandingWeight, ";
  1084. }
  1085. }
  1086. class LidoBriefingData {
  1087. LidoBriefingData({
  1088. required this.briefingStatus,
  1089. });
  1090. final String? briefingStatus;
  1091. static const String briefingStatusKey = "briefingStatus";
  1092. LidoBriefingData copyWith({
  1093. String? briefingStatus,
  1094. }) {
  1095. return LidoBriefingData(
  1096. briefingStatus: briefingStatus ?? this.briefingStatus,
  1097. );
  1098. }
  1099. factory LidoBriefingData.fromJson(Map<String, dynamic> json) {
  1100. return LidoBriefingData(
  1101. briefingStatus: json["briefingStatus"],
  1102. );
  1103. }
  1104. Map<String, dynamic> toJson() => {
  1105. "briefingStatus": briefingStatus,
  1106. };
  1107. @override
  1108. String toString() {
  1109. return "$briefingStatus, ";
  1110. }
  1111. }
  1112. class CategoriesNames {
  1113. CategoriesNames({
  1114. required this.raim,
  1115. required this.cda,
  1116. required this.vertprof,
  1117. required this.iwfr,
  1118. required this.uad,
  1119. required this.dms,
  1120. required this.disp,
  1121. required this.ats,
  1122. required this.addwxnotam,
  1123. required this.firnotam,
  1124. required this.wxnotam,
  1125. required this.advaa,
  1126. required this.wxsatwx,
  1127. required this.admtrtaf,
  1128. required this.notam,
  1129. required this.sigwxroute,
  1130. required this.adsigmets,
  1131. required this.radar,
  1132. required this.adwxsatwx,
  1133. required this.abd,
  1134. required this.ofp,
  1135. required this.vaatca,
  1136. required this.tlr,
  1137. required this.dismap,
  1138. required this.crewinfo,
  1139. required this.arptnotam,
  1140. required this.adwxsigwx,
  1141. required this.wxsigwx,
  1142. required this.sfc,
  1143. });
  1144. final String? raim;
  1145. static const String raimKey = "RAIM";
  1146. final String? cda;
  1147. static const String cdaKey = "CDA";
  1148. final String? vertprof;
  1149. static const String vertprofKey = "VERTPROF";
  1150. final String? iwfr;
  1151. static const String iwfrKey = "IWFR";
  1152. final String? uad;
  1153. static const String uadKey = "UAD";
  1154. final String? dms;
  1155. static const String dmsKey = "DMS";
  1156. final String? disp;
  1157. static const String dispKey = "DISP";
  1158. final String? ats;
  1159. static const String atsKey = "ATS";
  1160. final String? addwxnotam;
  1161. static const String addwxnotamKey = "ADDWXNOTAM";
  1162. final String? firnotam;
  1163. static const String firnotamKey = "FIRNOTAM";
  1164. final String? wxnotam;
  1165. static const String wxnotamKey = "WXNOTAM";
  1166. final String? advaa;
  1167. static const String advaaKey = "ADVAA";
  1168. final String? wxsatwx;
  1169. static const String wxsatwxKey = "WXSATWX";
  1170. final String? admtrtaf;
  1171. static const String admtrtafKey = "ADMTRTAF";
  1172. final String? notam;
  1173. static const String notamKey = "NOTAM";
  1174. final String? sigwxroute;
  1175. static const String sigwxrouteKey = "SIGWXROUTE";
  1176. final String? adsigmets;
  1177. static const String adsigmetsKey = "ADSIGMETS";
  1178. final String? radar;
  1179. static const String radarKey = "RADAR";
  1180. final String? adwxsatwx;
  1181. static const String adwxsatwxKey = "ADWXSATWX";
  1182. final String? abd;
  1183. static const String abdKey = "ABD";
  1184. final String? ofp;
  1185. static const String ofpKey = "OFP";
  1186. final String? vaatca;
  1187. static const String vaatcaKey = "VAATCA";
  1188. final String? tlr;
  1189. static const String tlrKey = "TLR";
  1190. final String? dismap;
  1191. static const String dismapKey = "DISMAP";
  1192. final String? crewinfo;
  1193. static const String crewinfoKey = "CREWINFO";
  1194. final String? arptnotam;
  1195. static const String arptnotamKey = "ARPTNOTAM";
  1196. final String? adwxsigwx;
  1197. static const String adwxsigwxKey = "ADWXSIGWX";
  1198. final String? wxsigwx;
  1199. static const String wxsigwxKey = "WXSIGWX";
  1200. final String? sfc;
  1201. static const String sfcKey = "SFC";
  1202. CategoriesNames copyWith({
  1203. String? raim,
  1204. String? cda,
  1205. String? vertprof,
  1206. String? iwfr,
  1207. String? uad,
  1208. String? dms,
  1209. String? disp,
  1210. String? ats,
  1211. String? addwxnotam,
  1212. String? firnotam,
  1213. String? wxnotam,
  1214. String? advaa,
  1215. String? wxsatwx,
  1216. String? admtrtaf,
  1217. String? notam,
  1218. String? sigwxroute,
  1219. String? adsigmets,
  1220. String? radar,
  1221. String? adwxsatwx,
  1222. String? abd,
  1223. String? ofp,
  1224. String? vaatca,
  1225. String? tlr,
  1226. String? dismap,
  1227. String? crewinfo,
  1228. String? arptnotam,
  1229. String? adwxsigwx,
  1230. String? wxsigwx,
  1231. String? sfc,
  1232. }) {
  1233. return CategoriesNames(
  1234. raim: raim ?? this.raim,
  1235. cda: cda ?? this.cda,
  1236. vertprof: vertprof ?? this.vertprof,
  1237. iwfr: iwfr ?? this.iwfr,
  1238. uad: uad ?? this.uad,
  1239. dms: dms ?? this.dms,
  1240. disp: disp ?? this.disp,
  1241. ats: ats ?? this.ats,
  1242. addwxnotam: addwxnotam ?? this.addwxnotam,
  1243. firnotam: firnotam ?? this.firnotam,
  1244. wxnotam: wxnotam ?? this.wxnotam,
  1245. advaa: advaa ?? this.advaa,
  1246. wxsatwx: wxsatwx ?? this.wxsatwx,
  1247. admtrtaf: admtrtaf ?? this.admtrtaf,
  1248. notam: notam ?? this.notam,
  1249. sigwxroute: sigwxroute ?? this.sigwxroute,
  1250. adsigmets: adsigmets ?? this.adsigmets,
  1251. radar: radar ?? this.radar,
  1252. adwxsatwx: adwxsatwx ?? this.adwxsatwx,
  1253. abd: abd ?? this.abd,
  1254. ofp: ofp ?? this.ofp,
  1255. vaatca: vaatca ?? this.vaatca,
  1256. tlr: tlr ?? this.tlr,
  1257. dismap: dismap ?? this.dismap,
  1258. crewinfo: crewinfo ?? this.crewinfo,
  1259. arptnotam: arptnotam ?? this.arptnotam,
  1260. adwxsigwx: adwxsigwx ?? this.adwxsigwx,
  1261. wxsigwx: wxsigwx ?? this.wxsigwx,
  1262. sfc: sfc ?? this.sfc,
  1263. );
  1264. }
  1265. factory CategoriesNames.fromJson(Map<String, dynamic> json) {
  1266. return CategoriesNames(
  1267. raim: json["RAIM"],
  1268. cda: json["CDA"],
  1269. vertprof: json["VERTPROF"],
  1270. iwfr: json["IWFR"],
  1271. uad: json["UAD"],
  1272. dms: json["DMS"],
  1273. disp: json["DISP"],
  1274. ats: json["ATS"],
  1275. addwxnotam: json["ADDWXNOTAM"],
  1276. firnotam: json["FIRNOTAM"],
  1277. wxnotam: json["WXNOTAM"],
  1278. advaa: json["ADVAA"],
  1279. wxsatwx: json["WXSATWX"],
  1280. admtrtaf: json["ADMTRTAF"],
  1281. notam: json["NOTAM"],
  1282. sigwxroute: json["SIGWXROUTE"],
  1283. adsigmets: json["ADSIGMETS"],
  1284. radar: json["RADAR"],
  1285. adwxsatwx: json["ADWXSATWX"],
  1286. abd: json["ABD"],
  1287. ofp: json["OFP"],
  1288. vaatca: json["VAATCA"],
  1289. tlr: json["TLR"],
  1290. dismap: json["DISMAP"],
  1291. crewinfo: json["CREWINFO"],
  1292. arptnotam: json["ARPTNOTAM"],
  1293. adwxsigwx: json["ADWXSIGWX"],
  1294. wxsigwx: json["WXSIGWX"],
  1295. sfc: json["SFC"],
  1296. );
  1297. }
  1298. Map<String, dynamic> toJson() => {
  1299. "RAIM": raim,
  1300. "CDA": cda,
  1301. "VERTPROF": vertprof,
  1302. "IWFR": iwfr,
  1303. "UAD": uad,
  1304. "DMS": dms,
  1305. "DISP": disp,
  1306. "ATS": ats,
  1307. "ADDWXNOTAM": addwxnotam,
  1308. "FIRNOTAM": firnotam,
  1309. "WXNOTAM": wxnotam,
  1310. "ADVAA": advaa,
  1311. "WXSATWX": wxsatwx,
  1312. "ADMTRTAF": admtrtaf,
  1313. "NOTAM": notam,
  1314. "SIGWXROUTE": sigwxroute,
  1315. "ADSIGMETS": adsigmets,
  1316. "RADAR": radar,
  1317. "ADWXSATWX": adwxsatwx,
  1318. "ABD": abd,
  1319. "OFP": ofp,
  1320. "VAATCA": vaatca,
  1321. "TLR": tlr,
  1322. "DISMAP": dismap,
  1323. "CREWINFO": crewinfo,
  1324. "ARPTNOTAM": arptnotam,
  1325. "ADWXSIGWX": adwxsigwx,
  1326. "WXSIGWX": wxsigwx,
  1327. "SFC": sfc,
  1328. };
  1329. @override
  1330. String toString() {
  1331. return "$raim, $cda, $vertprof, $iwfr, $uad, $dms, $disp, $ats, $addwxnotam, $firnotam, $wxnotam, $advaa, $wxsatwx, $admtrtaf, $notam, $sigwxroute, $adsigmets, $radar, $adwxsatwx, $abd, $ofp, $vaatca, $tlr, $dismap, $crewinfo, $arptnotam, $adwxsigwx, $wxsigwx, $sfc, ";
  1332. }
  1333. }